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

Home page different from catalog page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-29-2009, 11:46 AM
 
johnmy johnmy is offline
 

Newbie
  
Join Date: Jul 2009
Posts: 4
 

Default Home page different from catalog page

I really need help badly.

My client wants to have the home page different from catalog pages.

He want to have some things go away basically from the home page (left nav) when
you get to the catalog and other pages.

Can someone please help me with the code to be able to do that?

thanks in advance!!

-J

I've included a screenshot

http://174.36.144.207/store/skin1/images/homepage_A.jpg


http://174.36.144.207/store/skin1/images/layout_A.jpg
__________________
4.2.x X-Cart Gold
Reply With Quote
  #2  
Old 07-29-2009, 11:51 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Home page different from catalog page

To only show something on the home page, use this:

{if $main eq "catalog" and $current_category.category eq ""}

to HIDE something if it's not the home page:

{if $main eq "catalog" and $current_category.category ne ""}

obviously, a closing {if} as needed.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 07-29-2009, 12:22 PM
 
johnmy johnmy is offline
 

Newbie
  
Join Date: Jul 2009
Posts: 4
 

Default Re: Home page different from catalog page

Thanks carpeperdiem!!

Can you tell me where I put this code? like which page or template? I'm still a tad confused on that?

thanks
-J
__________________
4.2.x X-Cart Gold
Reply With Quote
  #4  
Old 07-29-2009, 04:18 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Home page different from catalog page

Ah... what template is what?

Webmaster Mode

You should probably start with the FAQ about template editing...
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
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 11:01 AM.

   

 
X-Cart forums © 2001-2020