when onAfterOrderDelete($elements) was triggered

  • Posts: 252
  • Thank you received: 1
8 years 1 month ago #251721

-- 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.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 1 month ago #251765

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.059 seconds
Powered by Kunena Forum