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

Adding Specific banners to specific categories!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-16-2006, 05:31 AM
  bedstar's Avatar 
bedstar bedstar is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 115
 

Default Adding Specific banners to specific categories!

Hi All

Im hoping this will be quite a simple one but im not much of a programmer so any help will be great.

I want to add different baners to different category sections so i need a set of {if}{else} statements but i wsn't sure of the structure. eg

{category URL eq "www.mystore.com/shop/category1.html} display this image
{elseif}
{category URL eq "www.mystore.com/shop/category2.html}display this
{/if}

I want to be able to do this with the html catalog so i can use categoryid=4 it has to be a URL that is specific to the html.catalog

Thanks

john
X-Cart 3x
__________________
https://www.bedstar.co.uk
Reply With Quote
  #2  
Old 12-16-2006, 06:39 AM
 
balinor balinor is offline
 

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

Default Re: Adding Specific banners to specific categories!

{if $cat eq 'x'}

show this

{elseif $cat eq 'x'}

show that

{/if}

replace 'x' with the number of the category.
__________________
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 05:35 AM.

   

 
X-Cart forums © 2001-2020