Skip to main content

when onAfterOrderDelete($elements) was triggered

10 years 1 month ago #251721 by twscott
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.5
-- PHP version -- : 5.5.12

Hi,
I need the content of the order when onAfterOrderDelete is triggered, but the order and order_products is already removed from DB. Is there a way that I can get the order information before the it is removed?
Thanks

Best regards
Scott

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

10 years 1 month ago #251765 by nicolas
Hi,

Instead of onAfterOrderDelete you should implement onBeforeOrderDelete
There you can use the loadFullOrder function of HikaShop to load all the data of the order that will be deleted.
www.hikashop.com/support/documentation/6...umentation.html#code

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

Time to create page: 0.047 seconds
Powered by Kunena Forum