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)
-   -   How do I remove "Add to Cart" button from Category List & Table Views? (https://forum.x-cart.com/showthread.php?t=70314)

AlphaChef 10-22-2014 04:22 PM

How do I remove "Add to Cart" button from Category List & Table Views?
 
All of my products have attributes (size, flavor, number) that need to be chosen by the customer prior to adding a product to the cart but if anyone clicks on "add to cart" button in the category list or table views it just dumps it in the cart with the default options.

I want to remove the "add to cart" buttons from both list and table views.

I have unchecked the "Display "Add to cart" buttons for products in grid view:" option in Store Setup/Cart and Checkout, but don't see a way to do that for List or Table View. Am I missing it?

Alternatively, I would be happy if the window that pops up upon adding the product to the cart offered the attribute options there.

All help and suggestions appreciated. Thanks.

tony_sologubov 10-23-2014 05:29 AM

Re: How do I remove "Add to Cart" button from Category List & Table Views?
 
Hi!

The basic guide about changing your store design is here:
http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes

Please let me know if it makes sense to you.

AlphaChef 10-23-2014 07:59 AM

Re: How do I remove "Add to Cart" button from Category List & Table Views?
 
Quote:

Originally Posted by tony_sologubov
Hi!

The basic guide about changing your store design is here:
http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes

Please let me know if it makes sense to you.


Thanks Tony

I'm not a programmer or IT guy (I'm a cheese maker) and I'd be lying if I told you I understood all of it but I think I have the minimal basics. Maybe.

I've tried to use the webkit to find sources to copy/change/amend but it doesn't seem to work on the list or table view. It's properly enabled but the tracing only works on the p[age header and side bar. My other issue with it is that because of my dark page backgrounds I've changed the default text color to white so I can't easily read all the webkit queries etc at the bottom of the page.

I'll keep plugging at it but after searching the manual and forum I haven't found the right direction to take this yet. Nobody wants to get rid of the "buy" button!

Thanks again.

qualiteam 10-24-2014 12:35 AM

Re: How do I remove "Add to Cart" button from Category List & Table Views?
 
Hi!

Have you tried to enable the "Force customer to choose product options before adding a product to cart" setting that is located at "Store setup" -> "Cart & checkout" back-end page?

It seems that this option is the thing that you are looking for.

tony_sologubov 10-24-2014 12:40 AM

Re: How do I remove "Add to Cart" button from Category List & Table Views?
 
Hi!

OK, I see. The problem with Webmaster Kit is actually a bug.

Anyway, if you want to get rid of add to cart buttons on grid/table views, then you should exclude the following templates from all view lists:
items_list/product/parts/list.button-add2cart.tpl
items_list/product/parts/common.button-add2cart.tpl

as described here:
http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes#Step2-applyingdesignchanges-Hidingtemplatesandwidgets

Alternatively, you can replace the same templates with empty ones using Custom Skin module:
http://kb.x-cart.com/display/XDD/Basic+guide+to+theme+creation#Basicguidetothemecre ation-UsingCustomSkinmodule

Please, let me know if it helps.

Tony.

AlphaChef 10-24-2014 06:18 PM

Re: How do I remove "Add to Cart" button from Category List & Table Views?
 
Quote:

Originally Posted by tony_sologubov
Hi!
Anyway, if you want to get rid of add to cart buttons on grid/table views, then you should exclude the following templates from all view lists:
items_list/product/parts/list.button-add2cart.tpl
items_list/product/parts/common.button-add2cart.tpl

Please, let me know if it helps.

Tony.


Tony- This looks promising. Thanks. I will try to work on it in the next couple of days and let you know how it goes. Greatly appreciated!


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

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