VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Mike J on April 30, 2019, 04:21:27 AM

Title: How to hide the product description of related products in 'add to cart'[solved]
Post by: Mike J on April 30, 2019, 04:21:27 AM
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.
Title: Re: How to hide the product description of related products in 'add to cart' pop up
Post by: jenkinhill on April 30, 2019, 10:24:25 AM
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>';
}
Title: Re: How to hide the product description of related products in 'add to cart' pop up
Post by: Mike J on May 02, 2019, 02:09:08 AM
 :) Thanks so much jenkinhill, Works perfectly for me now. Muchly appreciated.