Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

remove buy now button for one category

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-12-2013, 07:18 AM
 
IFO IFO is offline
 

Member
  
Join Date: Nov 2013
Posts: 24
 

Default 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
Reply With Quote
  #2  
Old 12-12-2013, 07:45 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
Reply With Quote
  #3  
Old 12-12-2013, 08:08 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default 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
Reply With Quote

The following user thanks chamberinternet for this useful post:
totaltec (12-12-2013)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:27 PM.

   

 
X-Cart forums © 2001-2020