How to hide the product description of related products in 'add to cart'[solved]

Started by Mike J, April 30, 2019, 04:21:27 AM

Previous topic - Next topic

Mike J

Hi there guys,

Does any bright spark out there know what file I need to edit in order to hide the product description of each related product that appears in the pop up after clicking 'Add to Cart'?

I'm just wanting the thumb, product name and price for each related product to be shown there.

I did successfully achieve this sometime ago but can't remember where I did that now, so any help appreciated.
VirtueMart 4.0.2 10661
Joomla! ‎3.10.11
PHP 7.4.30
mysql 5.7.39

jenkinhill

Edit and override components/com_virtuemart/sublayouts/related.php

You can comment out or remove the following code to remove the description, although this also removes the description for related on the product details pages.


if($customfield->wDescr){
echo '<p class="product_s_desc">'.$related->product_s_desc.'</p>';
}
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

Mike J

 :) Thanks so much jenkinhill, Works perfectly for me now. Muchly appreciated.
VirtueMart 4.0.2 10661
Joomla! ‎3.10.11
PHP 7.4.30
mysql 5.7.39