| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Choose country before checkout | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Thanks for reading this.
My goal is: Make it possible for the customer that he can choose his country during shopping (kind of like they can choose languages right now) and that the right VAT's are being displayed after he chose his country. Dear God why? We have international customers and different countries have different VAT's and VAT's are linked to the country of the customer, right? What i've been able to do this far: Get the country-select dropdown to the frontside right next to the "choose language" dropdown. The countries can be called in the front because i added this piece of code to home.php Code:
Now i need to insert a php function that writes the value of the country dropdown into the right spot in the database (for the current customer -> xcart_customers-> b_country) and here it is where i don't really know how to finish this task. I know how to write an own php script which would do that but for that i would need to put the password for the database into the code and i'm very paranoid when it comes to that ![]() Is there a good piece of code which i can insert into (for example) home.php that would do the job? I'm quite a beginner when it comes to php so any help is appreciated. Thanks
__________________
Xcart version 4.1.10 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Oops. This is in the wrong Forum. Could a Mod move it into Program logic?
Sorry and Thank you.
__________________
Xcart version 4.1.10 |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|