VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: siobhano on July 30, 2012, 22:17:50 PM

Title: Related Products
Post by: siobhano on July 30, 2012, 22:17:50 PM
Hi , I am not seeing any of my related products show up in the Front end. Everything looks fine on back end with related products defined in the custom fields tab for products. I wonder is there a config setting I am missing somewhere which forces related products to show up on the front end? I have checked config settings for shopfront and templates and don't see anything there. I also took a peek at the php code for the product details view in view.html and noticed the following code is commented out. Could that be my problem?

//      $product->related = $product_model->getRelatedProducts($virtuemart_product_id);
//      if(!empty($product->related) && is_array($product->related) && !empty($product->related[0]))$product_model->addImages($product->related);


Any help much appreciated - THANKS

VM 2.08E   ( Joomla 2.5.6 , MY SQL   5.5.16 , PHP Version    5.3.8,  Apache/2.2.21 )
Title: Re: Related Products
Post by: toad78 on October 18, 2012, 21:34:05 PM
Me neither. Did you ever figure it out?
Title: Re: Related Products
Post by: PRO on October 18, 2012, 22:56:54 PM
are you using a template override?

this should be in productdetails/default.php
if (!empty($this->product->customfieldsRelatedProducts)) {
   echo $this->loadTemplate('relatedproducts');
    } // Product customfieldsRelatedProducts END