Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Show more Review text on the initial Review page


Recommended Posts

Which bit of coding do I tweak to change the amount of review text shown on the main REVIEWS page? The way my site is laid out is leaving tons of space for more review text to be shown, but there is a character limit somewhere....and to read the full review you have to click it and go to a new page. Would look better if I could fill up the main page reviews with more visible text?


Thanks!! :blush:

Imperial Sandtrooper TD-2441, UK Garrison

Ghostbuster "Dr Smith"

Link to comment
Share on other sites

but there is a character limit somewhere




                    <td valign="top" class="main"><?php echo tep_break_string(tep_output_string_protected($reviews['reviews_text']), [b][color="#FF0000"][size=3]60[/size][/color][/b], '-<br>') . ((strlen($reviews['reviews_text']) >= 100) ? '..' : '') . '<br><br><i>' . sprintf(TEXT_REVIEW_RATING, tep_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])) . '</i>'; ?></td>

You may have a different number there.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.


"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -


"Headers already sent" - The definitive help


"Cannot redeclare ..." - How to find/fix it


SSL Implementation Help


Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 1 month later...

I found it!!!


around line 88, change this number from 100 to whatever you want - I put 1500!!! Enough!!!




$reviews_query_raw = "select r.reviews_id, left(rd.reviews_text, 1500) as reviews_text, r.reviews_rating, r.date_added, r.customers_name from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.products_id = '" . (int)$product_info['products_id'] . "' and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int)$languages_id . "' order by r.reviews_id desc";

$reviews_split = new splitPageResults($reviews_query_raw, MAX_DISPLAY_NEW_REVIEWS);





around line 169, change again the number 100 to the same number you put above. In my case, 1500!


<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td valign="top" class="main"><?php echo tep_break_string(tep_output_string_protected($reviews['reviews_text']), 60, '-<br>') . ((strlen($reviews['reviews_text']) >= 1500) ? '..' : '') . '<br><br><i>' . sprintf(TEXT_REVIEW_RATING, tep_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])) . '</i>'; ?></td>

<td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>



Aleluia!!! It worked!!!



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...