Zen Cart Logo
Forums / Basic Configuration / Link Review sidebox to product displayed

Link Review sidebox to product displayed

Locked

Views: 1,337

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
06 Jul 2006, 15:09
#1
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Link Review sidebox to product displayed

Has anyone ever customised either the reviews or testimonials sideboxes to show only reviews or testimonials relating to the product currently being displayed? And to show a random review if on non product pages. I've done a search but can't find anything related.

Alternatively what about displaying the reviews on the product info page rather than the Reviews button?

Thanks in advance.

06 Jul 2006, 15:12
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Link Review sidebox to product displayed

The sidebox changes to show a current review for the product on the product _info page or the Write Review shows ...

When not on the product _info page it selects a random review ...

06 Jul 2006, 15:13
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Link Review sidebox to product displayed

NOTE: you could customize the product _info pages to include the reviews ...

Takes a bit of work but it can be done ...

06 Jul 2006, 19:14
#4
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Link Review sidebox to product displayed

HI Linda

Thanks for the reply - my brain must be addled! :blush: Is that for older versions too or just 1.3?

Question then is can the sidebox be modified to show all related reviews?

06 Jul 2006, 19:17
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Link Review sidebox to product displayed

27 reviews in a sidebox ... ummm ... er ... well ... you could ... but that is gonna be awfully messy ...

Clicking on the Reviews Link on the product _info page takes you that products reviews and you can show how many there are ...

06 Jul 2006, 20:08
#6
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Link Review sidebox to product displayed

I agree :yes: however the cart is a rebuild from a non zen site cart which has related reviews coded onto the product pages in the left nav section. So the reviews box would seem to be the logical place to display them but it needs to show probably a max of three and if they are random not to repeat any. Does that make sense? Feasible?

06 Jul 2006, 20:11
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Link Review sidebox to product displayed

You can customize the sideboxes to show anything you would like ...

Just need to alter the code and the display ... :smile:

06 Jul 2006, 21:56
#8
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Link Review sidebox to product displayed

:D I know but I'm not as clever as you Linda ...grovel...

Could you give me an idea how to modify this code in tpl_reviews_random.php to show up to 3 then?```php
$content = "";
$content .= '<div align="left"><a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_review_sidebox_product->fields['products_id'] . '&reviews_id=' . $random_review_sidebox_product->fields['reviews_id']) . '">' . $review_box_text . ' ..</a><br /><br />' . zen_image(DIR_WS_TEMPLATE_IMAGES . 'stars_' . $random_review_sidebox_product->fields['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $random_review_sidebox_product->fields['reviews_rating'])) . '</div>';

06 Jul 2006, 22:06
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Link Review sidebox to product displayed

Be awhile before I have time to actually sit down and write this properly to do a select of 3 or X number of random reviews for a given product ...

You could make it 3 querries but that is slow and you'd get duplicates etc.

So it needs to be written a little smarter ...

06 Jul 2006, 22:10
#10
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Link Review sidebox to product displayed

That would be much appreciated whenever you can find time. Many thanks for your help. :thumbsup: