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

Checkout Page: Change Country Event - Need to refresh checkout fields widget

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 07-28-2015, 08:26 PM
  aneel13's Avatar 
aneel13 aneel13 is offline
 

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

Default Checkout Page: Change Country Event - Need to refresh checkout fields widget

In the checkout page, whenever we change the country I want to refresh the shipping/billing checkout fields widget so that a different set of fields show up.

Please let me know how to debug to find out that widget. Based on my assumptions, I would need to call that widget through ajax to refresh the div after each country change call.
__________________
Regards,
Aneel Sarwar
X-Cart version: 5.2.10
Windows: 7
Modules: Free version modules
Reply With Quote
  #2  
Old 07-30-2015, 10:53 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Checkout Page: Change Country Event - Need to refresh checkout fields widget

You can use developer tools built into your browser to see the log of AJAX requests - by checking URLs of these requests you can find what widget classes are reloaded.

For example, here is the request that reloads the address section of the checkout page:
http://demostore.x-cart.com/cart.php?target=checkout&action=&widget=%5CXLite%5 CView%5CCheckout%5CShippingAddress&_=353453461113

So, the widget that renders the first column with the address is this one:
\XLite\View\Checkout\ShippingAddress
__________________
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
  #3  
Old 08-01-2015, 08:31 PM
  aneel13's Avatar 
aneel13 aneel13 is offline
 

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

Default Re: Checkout Page: Change Country Event - Need to refresh checkout fields widget

Thanks for your response. Btw I don't see similar sort of ajax request in firebug log. http://demostore.x-cart.com/cart.php?target=checkout&action=&widget=%5CXLite%5 CView%5CCheckout%5CShippingAddress&_=353453461113

I have the following one only:
http://demostore.x-cart.com/cart.php?target=checkout&action=&widget=%5CXLite%5 CView%5CCheckout%5CShippin...43849310 8011
__________________
Regards,
Aneel Sarwar
X-Cart version: 5.2.10
Windows: 7
Modules: Free version modules
Reply With Quote
  #4  
Old 08-03-2015, 03:40 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Checkout Page: Change Country Event - Need to refresh checkout fields widget

I believe it is programmed to not reload the shipping address section on every update event. I guess it happens when you use an address for the address book. Not sure, however.
__________________
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
  #5  
Old 08-03-2015, 03:53 AM
  aneel13's Avatar 
aneel13 aneel13 is offline
 

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

Default Re: Checkout Page: Change Country Event - Need to refresh checkout fields widget

Yes, I debugged it and it was loading only on special cases.
__________________
Regards,
Aneel Sarwar
X-Cart version: 5.2.10
Windows: 7
Modules: Free version modules
Reply With Quote
  #6  
Old 06-08-2016, 11:30 PM
 
dharmendralko dharmendralko is offline
 

Member
  
Join Date: Jun 2015
Location: Lucknow, India
Posts: 21
 

Default Re: Checkout Page: Change Country Event - Need to refresh checkout fields widget

Hi,

how i can reload checkout detail on custom field value change or click a button that is out side of checkout box

thanks
__________________
Dharmendra Rao
PHP Developer
Lucknow, India
Reply With Quote
Reply
   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 06:57 AM.

   

 
X-Cart forums © 2001-2020