View Single Post
  #2  
Old 02-19-2018, 10:16 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: ItemList Update Fields

When you click the "Recalculate" button it submits the form to the \XLite\Controller\Admin\Order controller class and runs the doActionRecalculate() method there.

The controller recalculates the values and returns them back to JavaScript (see the displayRecalculateData() and displayRecalculateShippingData() methods).

JavaScript is configured to react on these events and update the page. See these files:
- skins/admin/order/page/info.js
- skins/admin/form_field/inline/select/shipping_method/controller.js

I never tried to add custom fields on that page, but I guess you should a) update the doActionRecalculate() method in the controller and make it return your custom data; b) add a custom JS file that will update the page in a way similar to how existing info.js and controller.js files react on events from the controller.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote