Product Reviews Do Not Show Properly

Description

Reviews do not load correctly if you have the review infobox in the left menu (see attached screenshot).

This is due to the review box using the $review variable when the product_review_info.php page is also using it.

To fix;
Open /catalog/includes/boxes/reviews.php

At the start of line 57, change;
$review = tep_db_fet...
To;
$review_result = tep_db_fet...

Change line 59;
$review = tep_break_string(tep_output_string_protected($review['reviews_text']), 15, '-<br>');
To;
$review_text = tep_break_string(tep_output_string_protected($review_result['reviews_text']), 15, '-<br>');

In line 61 (about 2/3 in) change;
dom_product['reviews_id']) . '">' . $review . ' ..</a><br><div
To;
dom_product['reviews_id']) . '">' . $review_text . ' ..</a><br><div

Environment

None

Steps to reproduce

Move your reviews infobox into the left menu (on our site it is the 3rd box down).

Status

Assignee

Giles Marshall

Reporter

Scott Murphy

Labels

None

Severity

Minor

Components

Fix versions

Affects versions

v2.5.1

Priority

Configure