How to Disable delete orders

  • Posts: 93
  • Thank you received: 5
13 years 11 months ago #2877

Hi nicholas,

Just wondering , is there an easy way of being able to disable the ability to delete orders through the shop?

Thanks.

I need to be able to track all orders


you Guys are Awesome and have excellent Support! Keep up the great Work!.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #2879

If you want to remove the order suppression, the best you can do is remove the DELETE access rights on the jos_hikashop_order table in phpmyadmin. That way, you will be sure that nothing can delete the data in there. That can be done in phpmyadmin providing that you have enough access rights to do it.

Alternatively, you can empty the delete function from the file administrator/components/com_hikashop/classes/order.php so that you leave only that code:
function delete(&$elements){
}

However, the second option will be overwritten when you update hikashop so I would recommend option no. 1

Please Log in or Create an account to join the conversation.

  • Posts: 93
  • Thank you received: 5
13 years 11 months ago #2954

thanks mate , legend :)


you Guys are Awesome and have excellent Support! Keep up the great Work!.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum