You are here:  » Adding Content After Related Products


Adding Content After Related Products

Submitted by allanch on Fri, 2016-12-02 11:40 in

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!

Submitted by support on Fri, 2016-12-02 11:55

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

Submitted by allanch on Fri, 2016-12-02 12:20

Thanks David, that's excellent!