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)
-   -   Controlling Add to Cart and Buy Now links by Category (https://forum.x-cart.com/showthread.php?t=4872)

shasan 10-21-2003 10:12 AM

Controlling Add to Cart and Buy Now links by Category
 
Hi Guys,

I need to make the 'Buy now' buttons and 'Add to Cart' buttons act differently in the case of one special category. i.e. if it's category 5, I want the Add to Cart and buy now links to say 'Download Now'.

Can I do this through smarty? if so, can someone throw me some sample code?

Thanks
shasan.

shan 10-21-2003 11:13 AM

something along the lines of

Code:

{if $cat eq "xxxxx" }

add download link here

{else}

add normal includes here

{/if}

.

set xxxx to the category number you want to apply it to

shasan 10-21-2003 01:50 PM

great! thanks Shan, I will test that out.


All times are GMT -8. The time now is 04:46 AM.

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