VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: nbirrell on January 06, 2014, 13:42:38 PM

Title: add to cart in category layout
Post by: nbirrell on January 06, 2014, 13:42:38 PM
Hi, just wondering if anyone knows how to remove the 'add to cart' button from a page with category layout. I am setting up a shoe selling shop and need customers to select the product details button first so that they can then pick their shoe size from an attribute list. If the 'add to cart' button shows on the category layout then customers might mistakenly select this without nominating their shoe size.

Thanks.
Title: Re: add to cart in category layout
Post by: lindapowers on January 06, 2014, 14:50:17 PM
If you use child products this button should not appear since they are forced to select one first.

If you use custom fields with cart attributes maybe it appears,

In any case, this is an option your template provider should include in the template settings,

Regards
Title: Re: add to cart in category layout
Post by: nbirrell on January 09, 2014, 17:06:07 PM
Hi Lindapowers, thanks for the reply, its is much appreciated. I have been through the template settings and cannot find an option to disable the add to cart button in category view. Do you know if i have to edit the css file to achieve what i'm hoping to?

Many thanks
Title: Re: add to cart in category layout
Post by: jenkinhill on January 09, 2014, 17:18:58 PM
The default category view in VirtueMart does not have an add to cart button for each product. Nor is it a configurable option.

So I guess you are using a commercial template with add to cart added, in which case you will need to edit the category template override file to remove the cart code. Compare that file with the VM default category view file,  components/com_virtuemart/views/category/tmpl/default.php