VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: sylvaink on April 10, 2016, 18:46:52 PM

Title: hide add button in all view except detailed view
Post by: sylvaink on April 10, 2016, 18:46:52 PM
Hello,

Since my visitor need to select some custom fields, I want only to have the add to cart button on the detailed page.
How can I  remove the add button from the other views?

Also the custom fields I don't want theme only on the detailed view



Title: Re: hide add button in all view except detailed view
Post by: jenkinhill on April 10, 2016, 19:07:59 PM
http://forum.virtuemart.net/index.php?topic=128401.0

You can prevent custom fields from displaying in the category view by a setting in Configuration/Shopfront/Product Listing

To remove the add to cart bar you can use template overrides or prevent the add to cart displaying using a CSS override:
.addtocart-bar {
    display: none;
}
Title: Re: hide add button in all view except detailed view
Post by: sylvaink on April 10, 2016, 20:22:43 PM
Hi
With your help I have got it working Thanks :-)