You are here:  » Adding "related products" to review page

Support Forum



Adding "related products" to review page

Submitted by teezone on Mon, 2008-02-04 06:36 in

Everything is working well, but for some reason (and this isn't a complaint!) Google seems to like the review page better than the product page right now. I think it has to do with a content site of mine that links to the new PT site.

I would like to optimize this landing page - is it possible to add "Related Products" items to the review page..? It will show first-time visitors more products, encouraging them to stay on the site.

Thanks!
T.

Submitted by support on Mon, 2008-02-04 08:42

Hi there,

Yes, this can be done quite easily.

In products.php, look for the block of code that begins with:

if ($config_useRelated || (!isset($product)))
{

...at line 62, and continues until the corresponding closing } on line 99. COPY this code, and PASTE it into reviews.php at the end of the main block of code, BEFORE the following line:

  require("html/header.php");

Finally, again in reviews.php, and below where you just added the above code, look for:

require("html/ratings.php");

...and then ADD the following code immediately afterwards:

if (isset($related)) require("html/related.php");

Cheers,
David.

Submitted by teezone on Mon, 2008-02-04 18:18

Worked like a charm, thanks!!