Quote:
Originally Posted by keystone
After looking over your suggested code again, i noticed that you have
Code:
{elseif $userinfo.membership eq 'Retail'}Retail
I don't actually have a membership called Retail so that line will not ever actually work. Any customer not logged in as a wholesale account would get the No Membership in that case, correct?
I think I will also add the echo line too to see what is in there if anything like you suggested.
would I add that line like this in the spot I want it?
echo {$userinfo.membership}
|
Alright I assumed you had one called retail, but no worries, just viewing whatever is inside the variable should also do nicely.
I have no clue how this template system works so I don't know how to just echo the variable, I imagine it would perhaps be something like
Code:
{$userinfo.membership}
Without the echo.
(based on this)
So try this:
Code:
<strong>Membership:</strong> {if $userinfo.membership eq 'Wholesale'}Wholesale
{else}
{$userinfo.membership}
{/if}
And if you just want to see what is in the variable directly:
Code:
<strong>Membership:</strong> {$userinfo.membership}