Submitted by allanch on Fri, 2016-12-02 11:40 in HTML Design
Hi David,
I hope you're well! I was wondering what is the best way of adding extra html content that shows after Related Products on the product page and will still show even though there are no related products? Thanks!
Probably the easiest way, would be to create a file related.html in your Price Tapestry installation folder (e.g. /pt/related.html) containing the desired content, and then edit the plugin file pto_product.php and look for the following code at line 514:
$html .= pto_product_related($product);
...and REPLACE with:
$html .= pto_product_related($product);
global $pto_config_externalPath;
$html .= file_get_contents($pto_config_externalPath."related.html");
Hi Allan,
Probably the easiest way, would be to create a file related.html in your Price Tapestry installation folder (e.g. /pt/related.html) containing the desired content, and then edit the plugin file pto_product.php and look for the following code at line 514:
$html .= pto_product_related($product);
...and REPLACE with:
$html .= pto_product_related($product);
global $pto_config_externalPath;
$html .= file_get_contents($pto_config_externalPath."related.html");
Hope this helps!
Cheers,
David.
--
PriceTapestry.com