| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Checkout Page: Change Country Event - Need to refresh checkout fields widget | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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 |
|||||||||
#2
|
|||||||||
|
|||||||||
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 |
|||||||||
#3
|
|||||||||
|
|||||||||
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 |
|||||||||
#4
|
|||||||||
|
|||||||||
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 |
|||||||||
#5
|
|||||||||
|
|||||||||
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 |
|||||||||
#6
|
|||||||
|
|||||||
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 |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|