-
AuthorPosts
-
June 10, 2018 at 9:37 pm #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
June 12, 2018 at 12:26 am #971448Hey honkatech,
To make sure we understand, if a product has no review, then it is visible or not?
Best regards,
BasilisJune 12, 2018 at 3:35 am #971486Exactly if a product has no review, then it is not visible.
June 12, 2018 at 10:40 pm #971932Hi,
That is a correct behavior, right? If no review, what can it show?
Best regards,
BasilisJune 12, 2018 at 11:57 pm #971961and 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
June 13, 2018 at 10:49 am #972208Hi honkatech,
Have you tried the solution here?
Best regards,
VictoriaJune 13, 2018 at 3:23 pm #972316Hi 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, 6 months ago by dimitrilpc.
June 13, 2018 at 8:04 pm #972451Thank 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’);
}June 14, 2018 at 8:40 am #972668 -
AuthorPosts
- You must be logged in to reply to this topic.