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

How do you call upon a certian category?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-14-2007, 02:24 PM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default How do you call upon a certian category?

I want to add additional infor for certian categories, but I dont want to add it into the product description.

Well... it will be in the product details....
Under the Add Cart and Add to Wishlist buttons I want to add some text that pertains to that category only.

I think its something like:
Code:
{if $categoryid="249"}<font color="red">Receive 2 FREE controller skins with the purchase of: Face Plate +2 Sides.</font>{/if}

What is the correct {if} statement to call upon a category? {if $..........}
__________________
Doug Rock
X-cart Gold 4.1.9
_____________________________________
Altered Cart: 1-Page checkout
Firetank: Feed Manager
Website CM: CDSEO PRO
Website CM: Product A-Z Map
Website CM: Review Approval
Website CM: Site Map Pro
Qualiteam: Sales & Stats (free version)
Reply With Quote
  #2  
Old 11-14-2007, 03:11 PM
 
PhilJ PhilJ is offline
 

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

Default Re: How do you call upon a certian category?

Code:
{if $cat eq "123"} ... {/if}
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 11-14-2007, 03:14 PM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default Re: How do you call upon a certian category?

Quote:
Originally Posted by PhilJ
Code:
{if $cat eq "123"} ... {/if}

YAY !!! Thank you so much.
I was close... {if $product.cat eq "123"} ... {/if}

Is there a list of these common smarty tags/commands for X-cart anywhere? If not, I think it would be a great guide like balinor's template editing guide.
__________________
Doug Rock
X-cart Gold 4.1.9
_____________________________________
Altered Cart: 1-Page checkout
Firetank: Feed Manager
Website CM: CDSEO PRO
Website CM: Product A-Z Map
Website CM: Review Approval
Website CM: Site Map Pro
Qualiteam: Sales & Stats (free version)
Reply With Quote
  #4  
Old 11-14-2007, 03:15 PM
 
balinor balinor is offline
 

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

Default Re: How do you call upon a certian category?

http://forum.x-cart.com/showthread.php?t=8881

http://forum.x-cart.com/showthread.php?t=12718
__________________
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 01:54 AM.

   

 
X-Cart forums © 2001-2020