Hi,
In step 1 tpl of the checkout page, I am using the below to display content to none registered users
{if !$auth.user_id} my content
Hi,
In step 1 tpl of the checkout page, I am using the below to display content to none registered users
{if !$auth.user_id} my content
Probably
{if $auth.user_id > 0}
I found that {$auth.user_id} is equal to 0, if a user is a guest or non-registered.
Use
{$var|@fn_print_r}
to print {$var} data (in your case {$auth|@fn_print_r}). See if there is the difference in any data if you are non-registered, guest or logged in and use that difference.
You also can use debug tool to see all variables in the template. Just add ?debug (or &debug) to the url in admin area and a bug icon appears at the right. Go to the customer area page, click on the bug icon and go the templates to see all variables used in this page. It is very useful. https://docs.cs-cart.com/4.2.x/tools/debugger.html
Thank you Breezee for your input.
Yes, you are right. value of $auth.user_id for non-registered users and guest users is 0. I used the below variable and it worked fine.
{if !$auth.user_id && !$contact_info_population}
Thank you very much for your info.