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.
__________________
Regards,
Aneel Sarwar
X-Cart version: 5.2.10
Windows: 7
Modules: Free version modules
|