Home › Forums › WoodMart support forum › Reviews not showing on categories pages
Reviews not showing on categories pages
- This topic has 11 replies, 2 voices, and was last updated 6 months ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
April 29, 2024 at 6:37 am #561505
jeff44ParticipantHello,
I notice a problem that I didn’t have before on the product category pages. Reviews are not visible.
You should know that I do not use a layout for archives. Only theme options.
Reviews are enabled in Woocommerce settings.
I use the Guaranteed Reviews Company tool for reviews but have never had a problem. The tool is compatible.
I tested all the product hovers but nothing changes. I checked all the theme options but can’t find anything.Can you help me ?
Regards,
JeffApril 29, 2024 at 4:31 pm #561733
Aizaz Imtiaz AwanKeymasterHello,
Please deactivate all the 3rd party plugins and activate only theme-required plugins on the site and then check the issue. I am sure your issue will be solved. Then Activate the 3rd party plugins one by one and check which plugin is creating the issue for you.
Otherwise, if the issue still exists then keep the 3rd party plugins deactivated and share the wp logins details so i will check and give you a possible solution.
Best Regards.
April 29, 2024 at 8:33 pm #561815
jeff44ParticipantHello,
Yes, I have already disabled third-party plugins but that’s not where it comes from. I haven’t added any new plugins to the site.
I’ll leave you more information privately.
Regards,
JeffAttachments:
You must be logged in to view attached files.April 30, 2024 at 11:49 am #561943
Aizaz Imtiaz AwanKeymasterHello,
Now check back on your site and check the issue.
Best Regards.
April 30, 2024 at 2:00 pm #562026
jeff44ParticipantHello,
Thanks for your support.
Would it be possible to tell me what was causing the problem?Regards,
April 30, 2024 at 4:14 pm #562121
Aizaz Imtiaz AwanKeymasterHello,
It was an issue with your child theme. I have activated the parent theme on your site and it is working fine.
Best Regards.
May 1, 2024 at 7:40 pm #562475
jeff44ParticipantHello,
I wanted to thank you for your help.
Knowing that I lost the modifications made to the chilld theme in the functions.php, I wanted to put back a code that you mentioned on your forum, to put the out of stock products at the bottom of the pages.
add_filter('posts_clauses', 'order_by_stock_status'); function order_by_stock_status($posts_clauses) { global $wpdb; // only change query on WooCommerce loops if (is_woocommerce() && (is_shop() || is_product_category() || is_product_tag() || is_product_taxonomy())) { $posts_clauses['join'] .= " INNER JOIN $wpdb->postmeta istockstatus ON ($wpdb->posts.ID = istockstatus.post_id) "; $posts_clauses['orderby'] = " istockstatus.meta_value ASC, " . $posts_clauses['orderby']; $posts_clauses['where'] = " AND istockstatus.meta_key = '_stock_status' AND istockstatus.meta_value <> '' " . $posts_clauses['where']; } return $posts_clauses; }
And I realize that it is this code that hides the customer reviews on the category pages.
For my store, it is almost essential that I can move out of stock products to the end of the page. Can you inspect the code and tell me if there is a solution to prevent this from breaking product grid reviews?
Regards,
JeffMay 2, 2024 at 3:04 pm #562740
Aizaz Imtiaz AwanKeymasterHello,
As we can see, you have problems with extra code customizations made by you. Sorry, but fixing such problems is out of our theme support scope.
Best Regards.
May 2, 2024 at 7:35 pm #562825
jeff44ParticipantHello,
The code come from your team… https://xtemos.com/forums/topic/hide-out-of-stock-products-or-move-them-at-the-end/
I’m not a coder so unable to create codes.
Regards,
JeffMay 3, 2024 at 11:01 am #562978
Aizaz Imtiaz AwanKeymasterHello,
The problem is caused by the customization in your child’s theme. Our support does not cover fixing the customization.
The star ratings are displayed correctly with the parent theme.
If you have any questions please feel free to contact us.
Best Regards
May 3, 2024 at 12:40 pm #563027
jeff44ParticipantGood morning,
We are talking about the parent theme here. If we add this code in the parent theme, it blocks reviews. I never mentioned the child theme in my last few posts. You told me that it was the one that caused the problem so I never re-activated it.
Regards,
JeffMay 3, 2024 at 4:02 pm #563073
Aizaz Imtiaz AwanKeymasterHello,
Please remove the code and try to use this plugin for this purpose:
https://wordpress.org/plugins/woo-out-of-stock-last/Best Regards.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register