News:

Looking for documentation? Take a look on our wiki

Main Menu

Remove add to cart button from product list

Started by capoeira, March 10, 2015, 22:13:26 PM

Previous topic - Next topic

capoeira

Hi there, I'm using VM3. I was wondering if it's possible to remove the Add-to-cart button from product list so that customers can only see name of the product and product image, then when he clicks on product details, the button will be present there, I've seen a guide to do that on VM2 but unfortunately it's a bit different from current release.

AH

I thought this was a configuration

If someone post here that it is - then use that

If not create a template overrride

templates/yourtemplate/html/com_virtuemart/sublayouts/products.php

and remove or comment out this

      <?php echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product,'rowHeights'=>$rowsHeight[$row])); ?>
Regards
A

Joomla 4.4.5
php 8.1

capoeira


flykari

I have the same problem put I can not find that file to modify :(

I use Protostar template VM 3.0.10

Could you help :)

flykari

I found the file but when I edited it, it deleted the Add the cart Button from product page not from product list page :(

Hope someone can help me :)

GJC Web Design

Quoteremove or comment out this

      <?php echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product,'rowHeights'=>$rowsHeight[$row])); ?>

in an over ridden views/categories/default.php
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

flykari

Thank you.

but I am so dummy that I can not find this ...

"in an over ridden views/categories/default.php"

Kari


GJC Web Design

category sorry

\components\com_virtuemart\views\category\tmpl\default.php
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

flykari

#8
Ok. thank you. Now I find the file , but I donot that line in default.php ?
Removed post of incorrect PHP file - please try not to post complete files

jenkinhill

This thread was not about VM3.0.10 but about an earlier version. The addtocart sublayout  is now called in components/com_virtuemart/sublayouts/products.php so it is that file you need to edit & override.
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

flykari

Thank you very much !

I try it first thing in the morning.

Best regards from Finland

Good night

Kari

flykari

This solved my problem :)

Thank you !!!


Kari / Finland

Next I´l try to find from where to modify the customer mail ..