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)
-   -   Checkout Page: Change Country Event - Need to refresh checkout fields widget (https://forum.x-cart.com/showthread.php?t=72500)

aneel13 07-28-2015 08:26 PM

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.

qualiteam 07-30-2015 10:53 AM

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

aneel13 08-01-2015 08:31 PM

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

qualiteam 08-03-2015 03:40 AM

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.

aneel13 08-03-2015 03:53 AM

Re: Checkout Page: Change Country Event - Need to refresh checkout fields widget
 
Yes, I debugged it and it was loading only on special cases.

dharmendralko 06-08-2016 11:30 PM

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


All times are GMT -8. The time now is 08:07 AM.

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