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

Product details instead of "Add to cart"

Started by fuzy, October 06, 2015, 15:16:16 PM

Previous topic - Next topic

fuzy

Hi,

How can I replace the "Add to cart" button with "Product details" in the "Virtuemart Products" module? :-\
I'm pretty sure I should change the file /modules/mod_virtuemart_product/tmpl/default.php but how can I get the "Product details" button?
I'm using Virtuemart v. 3.0.6.2

Thank you! :)

jenkinhill

First it is very important that you update your VirtueMart version, but test the update on a copy of the live site first.  http://forum.virtuemart.net/index.php?topic=118683.0

The products module in the current VM version has a switch for removong the Add to Cart.  That may be all you need.

If you do want to add a "button" for product details then yes, you do need to override that file. You can see an example of the prduct details button code in the products.php sublayout files, look for the vm-details-button class.
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

fuzy

Quote from: jenkinhill on October 06, 2015, 15:44:38 PM
First it is very important that you update your VirtueMart version, but test the update on a copy of the live site first.  http://forum.virtuemart.net/index.php?topic=118683.0

The products module in the current VM version has a switch for removong the Add to Cart.  That may be all you need.

If you do want to add a "button" for product details then yes, you do need to override that file. You can see an example of the prduct details button code in the products.php sublayout files, look for the vm-details-button class.

Thank you very much!