Title: Few bugs
Last modified: August 21, 2016

---

# Few bugs

 *  Resolved [tomaslinnea](https://wordpress.org/support/users/tomaslinnea/)
 * (@tomaslinnea)
 * [12 years ago](https://wordpress.org/support/topic/few-bugs/)
 * Hi,
    Thank you for a great plugin! I have noticed a few bugs:
 * 1. If you don’t enter all 5 options and grades, the overall score will be calculated
   wrong. This i because it still take all 5 options in consideration when is should
   ignore the blank ones.
    SOLUTION: Remove row 23 in cwp_frontpage.php `if(empty(
   ${"option".$i."_grade"})) { ${"option".$i."_grade"} = "10"; }`
 * 2. The widget displays the products in the wrong order. It should be according
   to grade but it’s order by date.
 * 3. I can’t get it to work on pages. Even though the setting are there when you
   create a page, it’s not being displayed.
 * [https://wordpress.org/plugins/wp-product-review/](https://wordpress.org/plugins/wp-product-review/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [WPShout](https://wordpress.org/support/users/codeinwp/)
 * (@codeinwp)
 * [12 years ago](https://wordpress.org/support/topic/few-bugs/#post-4695688)
 * Hi,
    ​ ​Thank you for this feedback. ​ ​We are taking it into consideration and
   all bugs should be fixed with the next update. ​ ​Thank you for choosing our 
   products.
 * ​Best regards.
 *  [Xam1311](https://wordpress.org/support/users/xam1311/)
 * (@xam1311)
 * [12 years ago](https://wordpress.org/support/topic/few-bugs/#post-4695891)
 * Change wp-product-review/inc/cwp_frontpage.php
    Line 157 change is_single for
   is_singular and for pages it will works `if(@$cwp_review_stored_meta['cwp_meta_box_check'][
   0] == 'Yes' && is_singular())` i made a few modification for enable/desactivate
   the able for users to post their review
 * Change wp-product-review.php Folder racine
 *     ```
       include "admin/functions.php";
       include "inc/cwp_comment.php";
       ```
   
 * Cahnge admin/inc/config.php add
 *     ```
       array(
       							 "type"=>"tab",
       							 "name"=>"Comments review",
       							 "options"=>array(
   
       								array(
       									"type"=>"title",
       									"name"=>"Comments review options"
       								) ,
   
       								array(
       									"type"=>"select",
       									"name"=>"Show review comment",
       									"description"=>"Activate comment review user",
       									"id"=>"cwppos_show_userreview",
       									"options"=>array("yes"=>"Yes","no"=>"No"),
       									"default"=>"yes"
       								)
   
       							 )
       						) ,
       ```
   
 * and finally inc/cwp_comments.php
 *     ```
       $options = cwppos(); 
   
       if( $options['cwppos_show_userreview'] == "yes" ) : 
   
       add_action( 'comment_form_logged_in_after', 'cwp_additional_fields' );
       add_action( 'comment_form_after_fields', 'cwp_additional_fields' );
       add_filter('comment_text', "cwp_pac_comment_single");
   
       endif ;
       ```
   
 *  Plugin Author [WPShout](https://wordpress.org/support/users/codeinwp/)
 * (@codeinwp)
 * [12 years ago](https://wordpress.org/support/topic/few-bugs/#post-4695897)
 * Hi Xam1311,
 * Thank you for this feedback.
 * We are taking it into consideration and all bugs should be fixed with the next
   update.
 * Thank you for choosing our products.
 * Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Few bugs’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-product-review_7b97d5.svg)
 * [WP Product Review Lite](https://wordpress.org/plugins/wp-product-review/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-product-review/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-product-review/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-product-review/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-product-review/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-product-review/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [WPShout](https://wordpress.org/support/users/codeinwp/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/few-bugs/#post-4695897)
 * Status: resolved