Home › Forums › Themes Support › Claue › Related / Similar Products Are Not Very Similar
Tagged: related products, similar products
- This topic has 6 replies, 2 voices, and was last updated 7 years, 3 months ago by Harry.
-
AuthorPosts
-
-
July 20, 2017 at 3:53 pm #6797
Hi,
I need to know where the theme is pulling the related products from that appear at the bottom of each single product page. At the moment it seems to be a bit random – shouldn’t it pull from the current category?
If you look here: https://www.yaheestore.co.uk/shop/alphabet-chair-table-set-kids-children-playroom-plastic-abc-table-furniture-set/
This is under the category Home Furniture & DIY > Furniture > Children’s Furniture
But one of the suggested products underneath is a dog grooming table that isn’t even in the same category, that is in Pet Supplies > Dog Supplies
Please can you let me know how I only show similar products from the same category underneath each product page.
-
July 20, 2017 at 3:57 pm #6798
I’ve just reloaded the page and now it shows something from Sporting Goods > Pool & Snooker
I think this is broken as it seems pointless to just show random products underneath that aren’t even in the same category.
-
July 20, 2017 at 7:38 pm #6808
Hi,
The related products get from the product have same tags, belong to same category https://docs.woocommerce.com/document/related-products-up-sells-and-cross-sells/
You can use a plugin to custom related products https://wordpress.org/plugins/woo-custom-related-products/
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 20, 2017 at 8:04 pm #6810
OK thanks I will look into that as it isn’t pulling from the categories as it’s supposed to do.
Also can someone look into a more urgent issue that has started again since I updated to the latest version of the theme:
-
July 21, 2017 at 7:30 pm #6838
Just for anyone else with this issue – WooCommerce pulls from both categories AND tags, so if you’ve tagged a lot of products with similar keywords then these will appear under “Related Products”.
I have fixed this by adding the code below that ignores tags when matching related products:
add_filter( 'woocommerce_product_related_posts_relate_by_tag', '__return_false' );
to the functions.php file in the child theme folder.
-
July 21, 2017 at 7:32 pm #6839
Despite the fact it explicitly states I can use BBCode in these replies, the above proves otherwise. Obviously ignore the [code][/code] of the above and use just the line inbetween.
-
July 21, 2017 at 9:50 pm #6845
I edit the code to correct as you want
Thank you so much!
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.