X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Home page different from catalog page (https://forum.x-cart.com/showthread.php?t=48894)

johnmy 07-29-2009 11:46 AM

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

carpeperdiem 07-29-2009 11:51 AM

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.

johnmy 07-29-2009 12:22 PM

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

carpeperdiem 07-29-2009 04:18 PM

Re: Home page different from catalog page
 
Ah... what template is what?

Webmaster Mode

You should probably start with the FAQ about template editing...


All times are GMT -8. The time now is 06:04 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.