![]() |
registered customers country variable...
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.
|
Re: registered customers country variable...
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.
|
Re: registered customers country variable...
How are you calling it? In an {if} statement? Post your whole code.
|
Re: registered customers country variable...
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.
|
Re: registered customers country variable...
{if $userinfo.b_country == "Canada"}
display info {else} display different info {/if} |
Re: registered customers country variable...
Try {if $userinfo.b_country eq "Canada"}
|
Re: registered customers country variable...
No luck, even if I just try to display {$userinfo.b_country} it shows nothing.
|
Re: registered customers country variable...
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} |
Re: registered customers country variable...
Thanks for the reply DaveB, I ended up getting a solution with the x-cart support.
|
Re: registered customers country variable...
I'd be interested to know if it's similar...
|
All times are GMT -8. The time now is 11:21 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.