X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Refreshing Shipping Module and Order Review based on new rates on custom event (https://forum.x-cart.com/showthread.php?t=72573)

aneel13 08-11-2015 10:00 PM

Refreshing Shipping Module and Order Review based on new rates on custom event
 
I want to refresh the shipping module and the order review section based on my custom event (hidden button clicked) that is after completion of api service request. Please let me know how to do that?

I was trying something like the following but this doesn't seems to refresh order review section. Only the shipping section is refreshed

jQuery(document).on( "click", ".sw-continue-hidden", _.bind(this.handleLogisticSuccess, this));

ShippingMethodsView.prototype.handleLogisticSucces s = function(event,data)
{
console.log('handleLogisticSuccess');
this.load();
};

Issue faced is that its not refreshing the order review widget (only shipping widget is refreshed with new rates) Please let me know what needs to be done to refresh the order review section with new shipping rates and new calculations.

qualiteam 08-20-2015 12:35 AM

Re: Refreshing Shipping Module and Order Review based on new rates on custom event
 
ShippingMethodsView handles the shipping widget only. If you want the "review" section to be refreshed too, you should find what widgets it is made from and make them reload themselves.

aneel13 08-20-2015 02:36 AM

Re: Refreshing Shipping Module and Order Review based on new rates on custom event
 
I am stucked and can't even find the widget which is responsible for refreshing the review area. My admin side is not working and giving the following error when I try to access through the correct credentials:

Warning:The form could not be identified as a form generated by X-Cart. The reason may be that a substantial period of time has elapsed since you opened the page with this form or the page was opened in more than one browser tab. If you did not open the page with this form, you might be under a CSRF attack.

aneel13 09-07-2015 03:02 AM

Re: Refreshing Shipping Module and Order Review based on new rates on custom event
 
Issue resolved


All times are GMT -8. The time now is 05:07 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.