| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
remove buy now button for one category | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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
__________________
Version 4.6.1 + Mobile 1.4.1 |
|||||||
#2
|
|||||||||
|
|||||||||
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
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||||
|
|||||||||
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.
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|