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)
-   -   Add to cart Button on certain products only... (https://forum.x-cart.com/showthread.php?t=1442)

yamz 02-09-2003 01:27 PM

Add to cart Button on certain products only...
 
Hello, just wanted to know what the best way was to add an add to cart button on certain products only. I have about 300 products, but I can only sell about 14 of them over the internet.

My first thought was to code it direct in to the Description Box?

If anybody knows of a better way, please let me know!

Thanks,

Yamz 8)

funkydunk 02-09-2003 11:31 PM

If you put a query around the add to cart form such as.

{if $product.productid eq 12345 }
Add to cart bits here
{else}
Phone ordering bits here
{/if}

Alternatively, if you set stock to zero for the items where you dont wat ordering then no add to cart buttons etc will appear.

yamz 02-10-2003 06:29 AM

Cool!
 
Thanks man, I will try that! 8)


All times are GMT -8. The time now is 10:32 PM.

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