VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: django29 on April 12, 2014, 19:37:02 PM

Title: "Use only as catalogue" on some categories
Post by: django29 on April 12, 2014, 19:37:02 PM
Hello

How can I display the price and "Add to cart" only for the products of some categories ?
Title: Re: "Use only as catalogue" on some categories
Post by: jenkinhill on April 12, 2014, 21:00:44 PM
Use template overrides for those categories for which you don't want to have an add to cart. For those overrides you should remove or comment out the add to cart form. eg in productdetails/default.php the add to cart contains the marker // Add To Cart Button  (VM2.6)

http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides
Title: Re: "Use only as catalogue" on some categories
Post by: jeanm on November 20, 2014, 00:56:53 AM
Hi, newbie with virtuemart, this topic helps me - thanks

But I've got an issue

In my case, I don't know what I've done wrong, but when I use a template override for one template, all the others got the override ...
:'(
Title: Re: "Use only as catalogue" on some categories
Post by: GJC Web Design on November 20, 2014, 11:46:45 AM
if it is different over rides they need different names - if you name it default.php it will over ride everything