News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

"Use only as catalogue" on some categories

Started by django29, April 12, 2014, 19:37:02 PM

Previous topic - Next topic

django29

Hello

How can I display the price and "Add to cart" only for the products of some categories ?

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jeanm

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 ...
:'(

GJC Web Design

if it is different over rides they need different names - if you name it default.php it will over ride everything
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation