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)
-   -   How do you call upon a certian category? (https://forum.x-cart.com/showthread.php?t=35439)

SystemSkins 11-14-2007 02:24 PM

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 $..........}

PhilJ 11-14-2007 03:11 PM

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

{if $cat eq "123"} ... {/if}

SystemSkins 11-14-2007 03:14 PM

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.

balinor 11-14-2007 03:15 PM

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


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

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