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)
-   -   remove buy now button for one category (https://forum.x-cart.com/showthread.php?t=68304)

IFO 12-12-2013 07:18 AM

remove buy now button for one category
 
We have a category of items that are too large for shipping and too costly for conventional payment methods (sell lab supplies)

We want to show these products on the site - but say "Call to Order" for these items.

I've looked for a way to turn off the Buy Now buttons in the admin - but the only thing I see is to not display the product at all.

I found this on the forum

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

But it doesn't seem to work for 4.5 (which the last post says but I tried it anyway)

thanks

Donna-NJ

totaltec 12-12-2013 07:45 AM

Re: remove buy now button for one category
 
Look at the $product array. Use webmaster mode. You should be able to divine the categoryid that you need to use and access it from the $product array. Try surrounding the button with an if statement,
if $categoryid = 123
Don't show
else
show

chamberinternet 12-12-2013 08:08 AM

Re: remove buy now button for one category
 
This is video a that Mike created a few months ago
http://www.youtube.com/watch?v=-7ESOW0pKU4

Takes on a different approach by adding a custom variable to product - but can achieve the same result.


All times are GMT -8. The time now is 08:16 PM.

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