| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
registered customers country variable... | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi all, i am trying to create an {if} statement based on the current registered customer's country in there profile, does anyone know what this variable name is.
__________________
X-Cart Version: 4.0.19 --Lester |
|||||||
#2
|
|||||||
|
|||||||
![]() I think this is the var $userinfo.b_country but it wont display, do I need to wrap something around it? Any help would be greatly appreciated.
__________________
X-Cart Version: 4.0.19 --Lester |
|||||||
#3
|
|||||||
|
|||||||
![]() How are you calling it? In an {if} statement? Post your whole code.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||
|
|||||||
![]() Thanks for the reply Balinor but I have tried this, I thought maybe there was something else that needed to wrap around that. I am trying to display this as an if statement in products_t.tpl which from what i can tell can not call these variables.
__________________
X-Cart Version: 4.0.19 --Lester |
|||||||
#5
|
|||||||
|
|||||||
![]() {if $userinfo.b_country == "Canada"}
display info {else} display different info {/if}
__________________
X-Cart Version: 4.0.19 --Lester |
|||||||
#6
|
|||||||
|
|||||||
![]() Try {if $userinfo.b_country eq "Canada"}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() No luck, even if I just try to display {$userinfo.b_country} it shows nothing.
__________________
X-Cart Version: 4.0.19 --Lester |
|||||||
#8
|
|||||||
|
|||||||
![]() I got this to work to show specific messages in the checkout for different countries.
This example is for Germany and based on the shipping address, not billing. {if $userinfo.s_country eq "DE"}{$lng.lbl_shippingadvice}{else}{/if}
__________________
Xcart 4.0.19 Pro mySQL 5.5.44 PHP 5.3.27 |
|||||||
#9
|
|||||||
|
|||||||
![]() Thanks for the reply DaveB, I ended up getting a solution with the x-cart support.
__________________
X-Cart Version: 4.0.19 --Lester |
|||||||
#10
|
|||||||
|
|||||||
![]() I'd be interested to know if it's similar...
__________________
Xcart 4.0.19 Pro mySQL 5.5.44 PHP 5.3.27 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|