Keeping order details up to date

  • Posts: 27
  • Thank you received: 0
4 years 7 months ago #309708

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.3.3

Were wanting to keep the order details page up to date when open in a browser.
So if you have an open order on your page, and someone else modifies the order (any of the field sets, Ie show_general, show_details, show_billing, show_additional etc) that we can reload that fieldset only.

We know that this URL :
'/administrator/index.php?option=com_hikashop&ctrl=order&task=show&subtask='FIELDSET'&cid=<? echo $this->order->order_id ;?>&tmpl=component',

will give the HTML of that entire fieldset, but how can we know if the values/object that generate that field only have changed so we can reload just that fieldset.

We already have in place the ability to reload the fieldset, but need to be able to determine if any of those values in that fieldset have changed.

Any suggestions?

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

  • Posts: 12953
  • Thank you received: 1778
4 years 7 months ago #309754

Hello,

The only ways to know if an order have been changed must be to :
- Use triggers like onAfterOrderUpdate(&$order,&$send_email)
==> you'll find more information via www.hikashop.com/support/documentation/6...mentation.html#order

- Use the "order_modified" column of the "#_hikashop_order" table and check if the order have been modified, but you'll have to compare it to the previous time you updated your order page

We wish you a nice day !
Kind regards,
Mohamed Thelji.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum