Hi David,
a lot of my customers click through to the reviews link. In most cases they do not find anything posted there. Some of my merchants have a short and a long description of the product. Would it be possible to add the long description to the reviews page?
Regards
ROland
Hi Roland,
You certainly could do this but i'm afraid there's a fair bit of work involved in getting the second review field registered and into the database.
The instructions for adding fields to your database are in this thread:
http://www.pricetapestry.com/node/313
You want to add a field called "description2" (or something like that)
Having done that, the next step would be to add the new description to the reviews page.
At the end of reviews.php you will find:
if (isset($product)) require("html/product.php");
require("html/ratings.php");
There are various options for displaying the long review.
1) Make a copy of html/product.php called html/product_long.php, and make the new version the one that is called in the require() statement in reviews.php. In the new version, look for the following code:
<p><?php print $mainProduct["description"]; ?></p>
...and change that to use your new, longer description:
<p><?php print $mainProduct["description2"]; ?></p>
2) Alternatively, you could just add code to reviews.php to display the new description between the main product information and the reviews themselves. To do this, you would insert code between the two require statements in the code above, as follows:
if (isset($product)) require("html/product.php");
print "<p>".$product["products"][0]["description2"]."</p>";
require("html/ratings.php");
As an alternative to adding a new field to your database, you could always register the long description as the description field, and then restrict the amount of description that is displayed on the product page and show the full description on the reviews page. See the following thread for more info:
http://www.pricetapestry.com/node/696
Again, this would involve creating a second copy of html/product.php, changing the first one to display the cropped description, and making the new new copy the one that is "required" in reviews.php...
Hope this helps,
Cheers,
David.