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.
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])); ?>
that did the trick, thanks
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 :)
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 :)
Quoteremove or comment out this
<?php echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product,'rowHeights'=>$rowsHeight[$row])); ?>
in an over ridden views/categories/default.php
Thank you.
but I am so dummy that I can not find this ...
"in an over ridden views/categories/default.php"
Kari
category sorry
\components\com_virtuemart\views\category\tmpl\default.php
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
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.
Thank you very much !
I try it first thing in the morning.
Best regards from Finland
Good night
Kari
This solved my problem :)
Thank you !!!
Kari / Finland
Next I´l try to find from where to modify the customer mail ..