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

Remove Add to Cart Button
 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 12-08-2016, 10:38 AM
 
bitzer bitzer is offline
    
Join Date: Dec 2016
Posts: 1
 

Default Remove Add to Cart Button

I am using X-cart 5
Windows
http://weyhey.co.uk/xcart/planet-express-babydoll.html

I wish to remove Add to Cart button from this product (practising on default products)

I have tried to find the correct css or tpl but nothing I try seems to affect it.

The source of the code I want to remove is below
<div class="buttons-row">
<a class="regular-button cart" href="http://weyhey.co.uk/xcart/?target=cart">
<span>View cart</span>
</a>
<a class="regular-main-button checkout" href="http://weyhey.co.uk/xcart/?target=checkout">
<span>Checkout</span>
__________________
X-Cart
Reply With Quote
  #2  
Old 12-08-2016, 09:56 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Remove Add to Cart Button

CSS won't block the product from being added to the cart. Even if you hide all buttons and disable the drag'n'drop function, users will still be able to open an URL that will add the product to cart.

So, you need a more complex modification.
Or you can use this module:
https://market.x-cart.com/addons/call-for-price.html
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 12-08-2016, 10:38 PM
 
bitzer bitzer is offline
    
Join Date: Dec 2016
Posts: 1
 

Default Re: Remove Add to Cart Button

Hi, that sounds ideal for my purposes, could you teach how to hide all buttons and disable the drag'n'drop function and which css to change please? I assume it is a display:none code but I am not sure which of the css is being used.

I understand that the css could still be called and if someone did manage to call it that would be fine as I could handle the outcome.

Thanks in advance
__________________
X-Cart
Reply With Quote
  #4  
Old 04-19-2017, 11:48 PM
 
yih yih is offline
 

Newbie
  
Join Date: Jul 2016
Posts: 7
 

Default Re: Remove Add to Cart Button

Hi bitzer,

Could you please share with me the solution?
Thanks in advance.

Regards,
Yih
__________________
yih
Reply With Quote
  #5  
Old 04-20-2017, 01:54 AM
 
xim xim is offline
 

X-Cart team
  
Join Date: Nov 2004
Posts: 675
 

Default Re: Remove Add to Cart Button

https://market.x-cart.com/addons/disable-drag-n-drop.html

+

https://market.x-cart.com/addons/catalog.html or https://market.x-cart.com/addons/call-for-price.html
__________________
Sincerely yours, Max Vydrin
Reply With Quote
  #6  
Old 11-07-2019, 09:26 PM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 140
 

Default Re: Remove Add to Cart Button

I'm using:

https://market.x-cart.com/addons/call-for-price.html

... it works fine, but I'm tweaking it to my liking, with an image instead of the text "Call for Price"


Here's a page that is using it:

https://blainespartynetwork.net/partypoints/giftmall/blaines-designs/sleep-like-royalty-on-this-beautiful-...oom-suite.html

The Price and "Add To Cart" button was replaced with the image: Blaine's Party Network Honor System - This Item Features Off-Line Negotiation & Payment.
__________________
Blaine

X-Cart Multi-vendor 5.4.0.5
PHP version: 7.2.23

Blaine's Party Network - http://blainespartynetwork.net
__________________________________________________ ________________

Party Points Gift Mall - https://blainespartynetwork.net/partypoints/giftmall/

Create a Rewards Program - http://blainespartynetwork.net/partypoints/

Grow Your Business - http://blainevk.blainespartynetwork.net/business/

Making Money & Fun - http://blainespartynetwork.net/partyconcierge/
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 01:19 AM.

   

 
X-Cart forums © 2001-2018