X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Remove Add to Cart Button (https://forum.x-cart.com/showthread.php?t=74774)

bitzer 12-08-2016 10:38 AM

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>

qualiteam 12-08-2016 09:56 PM

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

bitzer 12-08-2016 10:38 PM

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

yih 04-19-2017 11:48 PM

Re: Remove Add to Cart Button
 
Hi bitzer,

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

Regards,
Yih

xim 04-20-2017 01:54 AM

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

Blainevk 11-07-2019 09:26 PM

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.


All times are GMT -8. The time now is 04:41 AM.

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