You are here:  » Reviews on product page

Support Forum



Reviews on product page

Submitted by Harvey on Sun, 2007-07-15 19:36 in

Hi,

Has anybody managed to get the grey/yellow table with product reviews and comments box onto the bottom of the product page?

Thanks

Submitted by support on Mon, 2007-07-16 08:30

Hi Harvey / Mark,

This is quite straight forward to do but involves patching a lot of the code from reviews.php into products.php. It is therefore easier to post a modified version and let you take the changes from that file. Here it is:

productsWithReviews.zip

This version displays the reviews after the price table but before the related products. If you want it the other way round, simply change the order of the require() statements at the bottom of the new products.php, currently:

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

...so for reviews at the very bottom, change it to this:

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

Hope this helps!
Cheers,
David.

Submitted by scorpionwsm on Mon, 2007-07-16 08:56

Perfick,

Is there anyway though of removing the area where they can post their comments, so that it only shows the reviews and rating, and then you keep the reviews bit on the /html/product.html bit.

It's really only for more words to be on the page rather than as an actual review area.

Regards

Mark

Submitted by support on Mon, 2007-07-16 08:59

Hi Mark,

This will involve creating a separate version of html/ratings.php for use on your products page, and then editing that version to remove the form - that's all you would need to do.

Start by copying html/ratings.php as html/ratingsproduct.php. Then, edit the new file to remove the form HTML. Finally, in the modified products.php, change:

require("html/ratings.php");

to:

require("html/ratingsproduct.php");

Cheers,
David.

Submitted by scorpionwsm on Mon, 2007-07-16 09:04

Perfick again, that does the job.

Submitted by Harvey on Mon, 2007-07-16 10:48

Thanks David, transplant complete :)

Mark, you might want to get rid of the hyperlink to the review page...

In products.php change

            $rows[$k]["extraHTML"] = "<p>".tapestry_stars($rows[$k]["rating"],"")."&nbsp;<a href='".$rows[$k]["reviewHREF"]."'>".$rows[$k]["reviews"]." ".translate("Reviews")."</a></p>";

to

            $rows[$k]["extraHTML"] = "<p>".tapestry_stars($rows[$k]["rating"],"")."&nbsp;".$rows[$k]["reviews"]." ".translate("Reviews")."</p>";

Submitted by scorpionwsm on Mon, 2007-07-16 13:59

Hi Harvey,

Not sure what you mean being honest, I have put the mod up, and have no link in the reviews on product page, the only link that I have to review a product is in the /html/products.php.

I've been busy doing some reviews though, especially for wonderbra's ;)

Oh yes baby, this is the bee's knees, not only does it have a low front, so you actually see more of the cleavage, but it pushes them together and up more. Speaking as a man, more women should wear bras like this and less of the boulder holders :)

Regards

Mark

Submitted by scorpionwsm on Mon, 2007-07-16 14:07

Ah,

Unless you mean something like this

Marilyn Fantasy Wonderbra
Underwired balconette bra with amazing uplift, in shimmering pleated satin with ribbon trim detail. Hand wash. 34% Polyester, 29% Nylon, 18% Cotton, 15% Polyurethane, 4% Elastane.

Reviews

Thats on the related products bit if so, then I'm deffinatly leaving that in for the moment, as a lot of my crawls so far are pointing to the reviews rather than the products, so in respects, even if someone doesnt buy, if they have brought a product and are bored, then at least they can write a review.

As long as the review isn't spam then anything will be accepted as sometimes even one word can make or break a website.

I have seen a drop in sales on one website, because of ciao and one miss spelt word.

Is it just me or is the net slow today? Trying to upload xml feeds to the sites I had to change with something else, but there taking ages today, but before it was fast, saying the products have uploaded or most, but not the complete lot.

Submitted by marco on Wed, 2008-01-09 11:03

Hi,

The products.zip link does not seem to bee working. Could you update it?

Thanks

Submitted by support on Wed, 2008-01-09 11:14

Hello marco,

I've updated the link!

Cheers,
David.