News:

Support the VirtueMart project and become a member

Main Menu

Related Products

Started by siobhano, July 30, 2012, 22:17:50 PM

Previous topic - Next topic

siobhano

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 )

toad78

Me neither. Did you ever figure it out?

PRO

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