• Resolved tomaslinnea

    (@tomaslinnea)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPShout

    (@codeinwp)

    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

    (@xam1311)

    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

    (@codeinwp)

    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.