News:

Support the VirtueMart project and become a member

Main Menu

Hide Add to Cart on Category view screen

Started by mabeall32, July 02, 2015, 20:39:25 PM

Previous topic - Next topic

mabeall32

How can I hide the Add to Cart on the Category View.  I only want it to show on the product detail page. 

Joomla 3.4.1 & Virtuemart 3.0.9

AH

You will need to do an override to the sublayout file

components/com_virtuemart/sublayouts/products.php

make a copy in:-

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


then remove this section:-

<?php //echo $rowsHeight[$row]['customs'] ?>
<div class="vm3pr-<?php echo $rowsHeight[$row]['customfields'?>"> <?php
echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product,'rowHeights'=>$rowsHeight[$row])); ?>

</div>




This will remove the price and any customfields that may show in the browse category pages
Regards
A

Joomla 4.4.5
php 8.1

servlet

Он-лайн магазин за фототапети http://mishelfoster.com

loppan

Thank You AH for the information, I was struggling with this for a while... On a side note - there should totally be an option for this in the Virtuemart settings in future versions :).

AH

Regards
A

Joomla 4.4.5
php 8.1