| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
country before state | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Is it possible to move the country field above the state field when a customer is checking out ?
I've had quite a few emails from customers not figuring out they need to change the country first in order to enter their province. I tried removing all the states which would be fine but we use flat rate shipping depending on state so removing all the states really isn't an option. Any help would be great, thanks ![]()
__________________
X-Cart 4.0.13 :: X-RMA :: X-AOM :: MM 3.0 :: Easy Checkout :: Surcharge Mod |
|||||||
#2
|
|||||||
|
|||||||
![]() Sure, just edit the main/register_billing_address.tpl and main/register_shipping_address.tpl and move the fields around however you would like.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Quote:
Thanks for your reply balinor, I did that but it wouldn't work for me, seems that county, state and country all tie into one another somehow. Could you be a bit more specific maybe I did something wrong? I've done quite a bit of moding on this site and am usually able to resolve the issue but this one has me stumped. BTW, I have Jon's easy checkout installed on this too but that shouldn't be an issue as the mod doesn't affect the registration form.
__________________
X-Cart 4.0.13 :: X-RMA :: X-AOM :: MM 3.0 :: Easy Checkout :: Surcharge Mod |
|||||||
#4
|
|||||||
|
|||||||
![]() There are a lot of {if} statements in there, so you have to be careful, but it is possible to move them. Did you try moving them and you got an error?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() yes I did and I believe one of the {/if} is exactly what I screwed up, this is what I did.
Code:
I just moved country right above state but I know thats wrong. too many d*mn {if}'s and {/if}'s .... guess I'm getting old ![]()
__________________
X-Cart 4.0.13 :: X-RMA :: X-AOM :: MM 3.0 :: Easy Checkout :: Surcharge Mod |
|||||||
#6
|
|||||||
|
|||||||
![]() I think you need to take the second closing {/if} from the country grouping, and move it below the last {/if} in the state grouping.......
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() You have an else and an if statement ... you'll have to decide what you want to use.
- Mike
__________________
4.1.9 |
|||||||
#8
|
|||||||
|
|||||||
![]() ok thanks balinor I'll give that a try in a little while once traffic slows down a bit.
I REALLY appreciate your help with this ![]()
__________________
X-Cart 4.0.13 :: X-RMA :: X-AOM :: MM 3.0 :: Easy Checkout :: Surcharge Mod |
|||||||
#9
|
|||||||
|
|||||||
![]() Quote:
sorry Mike just caught your post, can you explain further ?
__________________
X-Cart 4.0.13 :: X-RMA :: X-AOM :: MM 3.0 :: Easy Checkout :: Surcharge Mod |
|||||||
#10
|
|||||||
|
|||||||
![]() Ok I got it and it works
![]() The only other thing I had to do was to also reverse the country and state fields in the register_states.tpl Works like a charm ![]() Thanks guys for your help .... excellent ![]()
__________________
X-Cart 4.0.13 :: X-RMA :: X-AOM :: MM 3.0 :: Easy Checkout :: Surcharge Mod |
|||||||
|
|||
X-Cart forums © 2001-2020
|