A couple of review/ratings page questions
Submitted by GemViper on Sun, 2010-05-02 19:41.Price Tapestry
~ What is the most efficient way I could add related products to the product review page? (ratings.php)
~ What would be the best way of adding the word "reviews" to the page title on those review pages ?
Thanks
Hi
To add related products, this can be done by copying the main related products section from products.php, which is the IF block contained by the following code beginning at line 64:
if ($config_useRelated || (!isset($product))){
Copy the entire block down to the matching closing "}" (line 99), and then paste into reviews.php immediately BEFORE the following code at line 81:
require("html/header.php");Finally, to display the related products after the reviews / review form; look for the following code at line 91:
require("html/ratings.php");...and REPLACE with:
require("html/ratings.php");if (isset($related)) require("html/related.php");
-------
To add "reviews" to the title, look for the following code on line 67:
$header["title"] = htmlentities($q,ENT_QUOTES,$config_charset);...and REPLACE with:
$header["title"] = htmlentities($q,ENT_QUOTES,$config_charset)." Reviews";(- that should have been the default case - will fix in the distribution!)
Cheers,
David.