Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #970881

    regards

    I have problems with woocomerce reviews, for example, I have the reviews activated when I create a product, but when I visualize the product does not show the reviews option, then when I edit the product and add a reviews then when I visualize the product if it shows the option of reviews the product.

    Thank you

    #971448

    Hey honkatech,

    To make sure we understand, if a product has no review, then it is visible or not?

    Best regards,
    Basilis

    #971486

    Exactly if a product has no review, then it is not visible.

    #971932

    Hi,

    That is a correct behavior, right? If no review, what can it show?

    Best regards,
    Basilis

    #971961

    and if the review option is not shown how the people will give rating ?

    If you open the access i sent you, you will know better, that I say

    #972208

    Hi honkatech,

    Have you tried the solution here?

    Best regards,
    Victoria

    #972316

    Hi there, same issue and I found the solution: I had 0 reviews and I found this snippet in the product_snippet_review.php

    			if($product->get_review_count('view') != 0) {
    				add_filter('comments_open', __return_true);
    			}
    

    This means that if your number of review is equal to 0, the ALB element will not appear. This is problematic. Furthermore, there is a problem with the brackets of the add_filter line. __return_true needs to be in brackets like this: ‘__return_true’. Just replace these two lines by:

    
    			if($product->get_review_count('view') >= 0) {
    				add_filter('comments_open', '__return_true');
    			}
    

    You could also try to delete these two lines, I didn’t do it because I didn’t inspect the entire structure of the code. But, it seems that these two lines were not in previous Enfold versions. This needs to be fixed at the next update. Please push this to the dev team in charge of the updates because this is highly important. There is, at the same time, a problem with the ‘__return_true’ which is not in brackets and a problem for the user experience. Your team thaught that if there is no review, there is nothing to show ( !=0 ). But at this moment, how the customers will write reviews?

    I also posted on this thread: https://kriesi.at/support/topic/product-reviews-dont-appear-on-site-when-using-alb/
    Best regards,
    Dimitri.

    • This reply was modified 6 years ago by dimitrilpc.
    #972451

    Thank you so much dimitrilpc

    The solution is correct:

    Just i have to replace this two line by this:

    if($product->get_review_count(‘view’) >= 0) {
    add_filter(‘comments_open’, ‘__return_true’);
    }

    #972668

    Hi honkatech,

    Great, glad you found a solution and thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.