©2006-2017 IAAI Software

Contact Us Privacy Policy

Related products

Submitted by wesse249 on Fri, 2015-07-31 08:55.

Hello David,

When you go to a productpage you see above the image: Price search result for "productname"

Under the image you see related product. Is it possibleto place here also the productname after? Related product for "productname"

Thanks, JR

Submitted by support on Fri, 2015-07-31 09:19.

Hello JR,

Sure - in html/related.php, look for where the Related Products title is displayed using:

<?php print translate("Related Products"); ?>

...and REPLACE with:

<?php print "Related products for ".$product["products"][0]["name"]; ?>

Cheers,
David.
--
PriceTapestry.com

Submitted by wesse249 on Fri, 2015-07-31 10:00.

Hi David,

Thanks but it produce nothing.

Gr JR

Submitted by support on Fri, 2015-07-31 10:17.

Ah sorry about that JR, the $product variable would be overwritten during generation of the price comparison table. Instead, use one of the following replacements (depending on your template - one of them will work...)

<?php print "Related products for ".$mainProduct["name"]; ?>

or

<?php print "Related products for ".$product_main["name"]; ?>

Cheers,
David.
--
PriceTapestry.com