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

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

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-22-2014, 04:22 PM
 
AlphaChef AlphaChef is offline
 

Newbie
  
Join Date: Mar 2014
Posts: 5
 

Default 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.
__________________
X-Cart v 5.0.11, no add-ons
Reply With Quote
  #2  
Old 10-23-2014, 05:29 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
AlphaChef (10-23-2014)
  #3  
Old 10-23-2014, 07:59 AM
 
AlphaChef AlphaChef is offline
 

Newbie
  
Join Date: Mar 2014
Posts: 5
 

Default 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.
__________________
X-Cart v 5.0.11, no add-ons
Reply With Quote
  #4  
Old 10-24-2014, 12:35 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default 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.
__________________
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
  #5  
Old 10-24-2014, 12:40 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #6  
Old 10-24-2014, 06:18 PM
 
AlphaChef AlphaChef is offline
 

Newbie
  
Join Date: Mar 2014
Posts: 5
 

Default 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!
__________________
X-Cart v 5.0.11, no add-ons
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



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 07:26 AM.

   

 
X-Cart forums © 2001-2020