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)
-   -   Conditional Help Needed (https://forum.x-cart.com/showthread.php?t=12919)

dalmuti 03-20-2005 01:32 PM

Conditional Help Needed
 
Hi,

I am working on a new site and in the customer/home.tpl I have...

{include file="customer/head_sub.tpl"}

But I want to make it a conditional and ONLY show on the home.php page.

I have:

{if $main eq "home"}
{include file="customer/head_sub.tpl"}
{/if}

But, when I use this code, it disappears completely so I know something isn't correct. Can anyone tell me what I'm doing wrong?

Please.....Thanks,

Louise

fuzzy 03-20-2005 04:38 PM

Ahh, just guessing here,
maybe try this in home.tpl.....

EDIT:
K! I guessed wrong! My Bad! :oops:

I'll go back to lurkin..

dalmuti 03-20-2005 08:25 PM

Thanks for the help....but I tried that and could not get it to work.

Anyone else have a clue?

Louise

Jon 03-20-2005 08:57 PM

Code:

{if $main eq "catalog" and $current_category.category eq ""}{include file="customer/head_sub.tpl"}{/if}

dalmuti 03-21-2005 05:53 AM

Jon,

Does this code go in my home.tpl file? Also, I only have one category, does that make a difference?

Thanks,

Louise

Jon 03-21-2005 08:23 AM

That code can go whereever you want the include to appear. Looks like probably you want it in your home.tpl

dalmuti 03-21-2005 08:37 AM

Thanks Jon

I know it takes time to answer all the questions in the forums and I appreciate each and everyone that does......I try when I have an answer and I am lightyears ahead of where I was 6 months ago, but still have a long way to go.

Thanks again....it worked GREAT!!!

Louise


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

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