Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

I need help with dual linking a picture on the front page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-12-2005, 08:06 AM
 
theotest theotest is offline
 

Newbie
  
Join Date: Jul 2003
Posts: 3
 

Default I need help with dual linking a picture on the front page

I am a webmaster for a company and we just launched our web store which is www.stork-source.com.

The problem I have is registration is required to view one section of our store which is anilox rolls and right now when someone who is not logged in clicks on it to view it they get looped back to the frontpage. We feel this is very confusing. What I am trying to do is set it up so that if you are not logged in you are directed to the registration page or log in and if they are logged in they enter that product category. Does anyone know how to do this?

Thanks,

Tabatha
email: storksource@stork.com
Reply With Quote
  #2  
Old 10-12-2005, 11:12 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Just use an {if} statement for the link, like this:

Code:
{if $login eq "" } link 1 {else} link 2

Translated, this says:

If the user is not logged in, display link one, if not display link 2.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:23 AM.

   

 
X-Cart forums © 2001-2020