Contributions
Reviews in Product Display
This mod will show reviews for a product on its description page. Set the number of reviews you'd like shown by changing the number in the admin>Configuration>Maximum Values (look towards the bottom). A setting of 0 will disable this mod completely (default setting is 3).
Expand All / Collapse All
Bug Fix. Complete package.
Fixed code that allowed long text strings to stretch the table in product_info.php
To upgrade:
In product_info.php
Find:
htmlspecialchars($reviews_values['reviews_text'])
Replace with:
tep_break_string(nl2br(tep_output_string_protected($reviews_values['reviews_text'])), 60, '-<br>')
Full Release Package...
Thanks to RubyGirl, I was able to add the Average Product Rating as well. This update includes that.
Full v2.1 package
I forgot to include a language define in v2.0 so this is just an update to that.
Follow Step 1 to update...
Reviews in Product Display v2.0
by PopTheTop
of http://www.popthetop.com
Description:
==========
This mod will show the reviews for a product on its description page (if any) in a shaded nice box. If there are no reviews, it will state that there are no reviews for this product and displays a "Write Review" button under it.
Reviews will be shown newest first from the given product and current language. Additionally there is an added "Write Review" button, and a "More Reviews" button that will disappear when not needed.
Set the number of reviews you'd like shown by changing the number in the Admin » Configuration » Maximum Values.
A setting of 0 will disable this mod completely (default setting is 3). If disabled, it uses the original osC code.
One more thing I added...
I removed the stock Reviews button in the box where the Add to Cart button is located. I have replaced it with a "Notifications" button if the customer is not registered to be notified of product changes and if they are, a new "Remove Notifications" button will be displayed.
If they are a guest and try to click on the buttons, it will make them login or create an account to use them.
Download and Support:
=================
Download From:
http://www.oscommerce.com/community/contributions, 734
osC Support Forum:
http://forums.oscommerce.com/index.php?showtopic=141691
History:
=======
03/15/2005 by PopTheTop
- Updated to current osC v2.2 MS2 release
- Changed the layout to match the stock osC look
- Removed the stock "Reviews" button in the box where the "Add to Cart" button is located and replaced it with a "Notifications" button (see above for more details)
09/05/2002 by Paul C.
- Original Release
(Based on the 9/1 snapshot)
This mod will show reviews for a product on its description page. Set the number of reviews you'd like shown by changing the number in the admin>Configuration>Maximum Values (look towards the bottom). A setting of 0 will disable this mod completely (default setting is 3).
Reviews will be shown newest first from the given product and current language. Additionally there is an added "Write Review" button, and a "More Reviews" button that will disappear when not needed.
(Note: only english language is provided, feel free to translate :) )
Note: Contributions are used at own risk.