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

How to use if statement for category page but not product page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-03-2013, 04:18 AM
 
snowboard snowboard is offline
 

Senior Member
  
Join Date: May 2007
Posts: 111
 

Default How to use if statement for category page but not product page

Hi,

I am using {if $cat eq "xxx"} code {/if} to put code in the header of a specific category page...

However I am finding that it is also putting it in all product pages of any products that are in that category!

How do I specify it so that it will only appear on the category page, but not on the product pages of products that belong to that category?

Thanks for your help,
__________________
version 4.1.7
Reply With Quote
  #2  
Old 07-03-2013, 04:23 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: How to use if statement for category page but not product page

{if $cat eq "xxx" && $main ne "product"} ... {/if}
__________________
xcartmods.co.uk
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:35 AM.

   

 
X-Cart forums © 2001-2020