Forums › Related Categories for WooCommerce › Manually specify individual relations in each category
- Support forum for the Related Categories for WooCommerce.
- This topic has 7 replies, 2 voices, and was last updated 5 years, 3 months ago by
Tom Anbinder.
-
AuthorPosts
-
January 21, 2020 at 6:31 am #90907
Tamar
GuestIt looks like I can only show related categories in the archives page by parent,etc. I was hoping I can manually specify individual relations in each category.
How do I get support to create woocommerce category settings, similar to how you can select related categories in the product edit page?
January 21, 2020 at 5:54 pm #90908Hi Tamar,
Please give me a minute – I will try to implement it right now. I will get back to you shortly.
January 21, 2020 at 7:16 pm #90909Hi again, Tamar,
Hopefully I’ve managed to implement it. Please update the plugin to new v1.2.0. After that you need to enable new “Per category” option in “Relate Options” settings section (in “WooCommerce > Settings > Related Categories”). Then you need to go to some category admin edit page (“Products > Categories > Your Category”) and there you will find new “Related categories” option.
Please check it out and let me know if something is not working as expected or if you have any other questions/ideas. And if you like the plugin, please consider leaving me a rating.
January 22, 2020 at 7:33 pm #90910jacob maymudes
ParticipantThank you for the quick response!
I see the settings, but I don’t see the related category in the category view (using archive-product.php) page from woocommerce.I tried the regular 2020 wordpress theme as well as the storefront theme from woocommerce on a fresh installation of wordpress.
Does it work for you or do I need to add something special to the archive-product page in order for it to display?
January 22, 2020 at 8:46 pm #90911Hi,
No, you don’t need to add anything to any template, however, as you’ve mentioned
archive-product.php
, I can see where the problem is. Our plugin shows related categories for the product, i.e. on single product page – by going through all product’s categories and finding related categories. Anyway, I’m already adding the option to show it on archives – will be releasing new plugin version in an hour or so. Will get back to you shortly.January 22, 2020 at 11:56 pm #90912It took me a bit longer than expected but, hopefully, I’ve managed to implement it. Please update the plugin to the latest version 1.3.0. After the update, you will find new “Archives” settings section (in “WooCommerce > Settings > Related Categories > Archives”). Please take a look and let me know if it’s working correctly now.
January 27, 2020 at 11:09 pm #90913jacob maymudes
ParticipantYes it works well now. I can select categories for the archive page.
I had to remove the “products” class in the $shortcode_output so that it wouldn’t interfere with infinite scrolling plugins that rely on the products class in, the shop loop section, to load more products.
Thank you for your timely help!
January 28, 2020 at 10:52 pm #90914Hi Jacob,
Happy to hear it’s solved! Please let me know if you need anything else.
P.S. And thank you for the review, I really appreciate it.
-
AuthorPosts
- You must be logged in to reply to this topic.