View Single Post
  #3  
Old 01-11-2018, 02:49 AM
 
herber@wirehub.nl herber@wirehub.nl is offline
 

eXpert
  
Join Date: Nov 2002
Posts: 305
 

Default Re: One Page Checkout - Javascript address vars

Quote:
Originally Posted by cherie
I'm not seeing one. You may have to create your own like:
Code:
<script> var ppZip = '{$userinfo.s_zipcode}'; </script>
Thank you!
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
Reply With Quote