displaying reviews on product pages
Hi,
On the my old installation of price tapestry installed a modified products.php to display reviews on the product pages.
Since installing the new price tapestry software I can not get the modification to work.
Would you be able to provide me with a new products.php that would show reviews on the product page that would work with the new version of price tapestry.
Thanks
Daryl
David, I would also like to implement this, I'm running the new PT, could you post/email me the updated product.php when you get a spare moment?
Thanks
any chance u could post the code here that i need to add to the product page
i did try just including the ratings.php but no use
Hi Jonny,
You also need to merge in the form handler code, which begins at line 8 of reviews.php:
if (isset($_POST["submit"]))(merge into the same place in products.php)
...and then copy the following section beginning at line 61:
$sql = "SELECT * FROM `".$config_databaseTablePrefix."reviews` WHERE product_name = '".database_safe($q)."' AND approved <> '0' ORDER BY created";
if (database_querySelect($sql,$rows))
{
$ratings["reviews"] = $rows;
}...and paste that into products.php immediately after the following code at line 48:
$product["products"] = $rows;Cheers,
David.
--
PriceTapestry.com
wasnt quite sure what u meant here , merge it where??
You also need to merge in the form handler code, which begins at line 8 of reviews.php:
if (isset($_POST["submit"]))
Hi Jonny,
If you would like to email me your products.php and reviews.php I'll merge them for you...
Cheers,
David.
--
PriceTapestry.com
Hi Daryl,
Sure - i'll email it over to you now...
Cheers,
David.