View Single Post
  #79  
Old 06-30-2008, 04:53 AM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Re: common if/then modifications I make to x-cart...

I forgot that that part was in home_main.tpl. Sorry about that.

Have you tried replacing

Code:
{elseif $main eq "catalog" and $current_category.category eq ""} {include file="customer/main/welcome.tpl" f_products=$f_products}

with

Code:
{elseif $main eq "catalog" and $current_category.category eq "" and $login ne""} {include file="customer/main/welcome.tpl" f_products=$f_products} {elseif $main eq "catalog" and $current_category.category eq ""} {include file="customer/main/welcomenl.tpl" f_products=$f_products}

all I did was add in the condition of and $login ne"" to display one of the welcome messages, and left the condition out to display the other. Might work?

For those that might refer to this later, the welcome.tpl should be displayed to logged in users, and the welcomenl.tpl should be displayed to any site visitor who is not logged in.
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote