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
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
Thank you for information! :)
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 :).
:)