Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Refreshing Shipping Module and Order Review based on new rates on custom event

 
Closed Thread
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-11-2015, 10:00 PM
  aneel13's Avatar 
aneel13 aneel13 is offline
 

Senior Member
  
Join Date: Jul 2015
Location: Dubai
Posts: 148
 

Default 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
  #2  
Old 08-20-2015, 12:35 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default 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.
__________________
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
  #3  
Old 08-20-2015, 02:36 AM
  aneel13's Avatar 
aneel13 aneel13 is offline
 

Senior Member
  
Join Date: Jul 2015
Location: Dubai
Posts: 148
 

Default 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.
__________________
Regards,
Aneel Sarwar
X-Cart version: 5.2.10
Windows: 7
Modules: Free version modules
  #4  
Old 09-07-2015, 03:02 AM
  aneel13's Avatar 
aneel13 aneel13 is offline
 

Senior Member
  
Join Date: Jul 2015
Location: Dubai
Posts: 148
 

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

Issue resolved
__________________
Regards,
Aneel Sarwar
X-Cart version: 5.2.10
Windows: 7
Modules: Free version modules
Closed Thread
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:27 AM.

   

 
X-Cart forums © 2001-2020