| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
One Page Checkout - Javascript address vars | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
One Page Checkout - Javascript address vars
Hi!
I'm currently working on a mod for our customers to choose a Pickup Point for their parcels. However, I'd like to pass the zipcode that the customer has filled in on his address, to the call that opens the Pickup Point Chooser-Window. So what I'm looking for, is a javascript variable that contains the zipcode of the customer. Is there such a variable? Location: cart.php?mode=checkout So the customer has already filled in his/her address and can now choose a payment method + shipping method. An extra button has been implemented, that will open a window that will let the customer choose a Pickup location for whatever parcel service he/she chooses. Is there such a Javascript variable on the checkout page?
__________________
X-Cart 4.7.12 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: One Page Checkout - Javascript address vars
I'm not seeing one. You may have to create your own like:
Code:
|
|||||||||
|
#3
|
|||||||
|
|||||||
Re: One Page Checkout - Javascript address vars
Quote:
That is exactly what I'm looking for, placing $userinfo.s_zipcode in a JS variable has solved my problem. Now I can pass this variable to the Pickup Point Chooser-popup window & customers will immediately see the Pickup Points near them.
__________________
X-Cart 4.7.12 |
|||||||
|
|||
X-Cart forums © 2001-2020
|