How to Disable delete orders

  • Posts: 93
  • Thank you received: 5
14 years 3 weeks 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: 83024
  • Thank you received: 13403
  • MODERATOR
14 years 3 weeks 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
14 years 2 weeks 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