Sale! Tested Updated Perfect rating Documented

Related Categories for WooCommerce

(3 customer reviews)

From: $19.99 / year

Add “Related categories” section to single product page and/or archives page in WooCommerce.

Clear

Description

Related Categories for WooCommerce plugin lets you add “Related categories” section (similar to standard “Related products” section) to single product page and/or archives page in WooCommerce.

Related Categories for WooCommerce - Frontend Example

General Options

Plugin settings are located in “WooCommerce > Settings > Related Categories”.

Related Categories for WooCommerce - General Options

Display on Single Product Page/Archives Page
Enables/disables “Single” and “Archives” sections.
Default: Single: yes; Archives: no
Limit
The number of categories to display.
Default: 4
Columns
The number of columns to display.
Default: 4
Hide empty
Hide/show empty categories.
Default: yes
Order by
If you want to order by the ids you specified then you can use “None”. Possible values: Name; ID; Slug; Menu order; None; Random.
Default: Name
Order
States whether the category ordering is ascending or descending, using the method set in “Order by”. Possible values: Ascending; Descending.
Default: Ascending

Relate Options

Related Categories for WooCommerce - Relate Options

Siblings
Enable this if you would like to display all categories with same parent (i.e. siblings).
Default: yes
Parents
Enable this if you would like to display all the parent categories.
Default: yes
Children
Enable this if you would like to display all the child categories.
Default: yes
Current
Enable this if you would like to display all the current categories.
Default: no
Per category
This will add “Related categories” settings section to each category edit page (in “Products > Categories > Edit category”).
Default: no
Per product
This will add “Related categories” meta box to each product edit page (in “Products > Edit product”). This option is available in “Single” section only.
Default: no
Per product: Override
Choose if you want categories to be overridden by “Per product” settings or merged with them.
Default: yes

Related Categories for WooCommerce - Per Product Options

Position Options

Related Categories for WooCommerce - Position Options

Position
Possible values in Single: Inside single product summary; Before single product summary; After single product summary; Disable. Possible values on Archives: Before main content; Before shop loop; After shop loop; After main content; Disable. “Disable” position can be set if you are going to use [alg_wc_related_categories_single] or [alg_wc_related_categories_loop] shortcode instead.
Default: Single: After single product summary; Archives: After shop loop;
Position order (i.e. priority)
Moves section inside the “Position”.
Default: Single: 21; Archives: 9
To place related categories section on single product page before the standard related products section, select “After single product summary” for “Position” and “19” for “Position order”. To place it after the related products section, set “21” for “Position order”.

Here is the table of standard position on single product page priorities in WooCommerce:

Position Existing/known WC hooks and priorities
Before single product summary
Show product sale flash 10
Show product images 20
Inside single product summary
Title 5
Rating 10
Price 10
Excerpt 20
Add to cart 30
Meta 40
Sharing 50
After single product summary
Output product data tabs 10
Upsell display 15
Output related products 20

Template Options

Related Categories for WooCommerce - Template Options

Header
Frontend header template.
Default:
<section class="related categories">
<h2>Related categories</h2>
Footer
Frontend footer template.
Default:
</section>
You can use HTML and/or shortcodes in Templates. For example, if you need to translate section heading for the WPML or Polylang, you can use [alg_wc_related_categories_translate] shortcode, e.g.:

[alg_wc_related_categories_translate lang="DE" lang_text="Verwandte Kategorien" not_lang_text="Related categories"]

or in more complex form:

[alg_wc_related_categories_translate lang="DE"]Verwandte Kategorien[/alg_wc_related_categories_translate][alg_wc_related_categories_translate not_lang="DE"]Related categories[/alg_wc_related_categories_translate]

3 reviews for Related Categories for WooCommerce

  1. blank

    sergio pasotti (verified owner)

    simple and useful.
    great assistance for both plugin improvements and help.

  2. blank

    Didier Azibert (verified owner)

    Very useful plugin. It helps manage the display of categories on archives and product pages and to choose which ones to display with several options. It’s even possible to choose a specific hook. And Tom Anbinder has been very helpful in adding a hook in his plugin that I needed and in helping me with my page builder.
    I highly recommend this plugin and more generally Tom’s seriousness.

  3. blank

    jacob maymudes (verified owner)

    Plugin is simple. It adds related categories to the single product page and the archive category pages. I have granular control with selecting individual categories as well as the related categories under the same hierarchy.

    Very Quick with responses, fixes and feature additions. Thank you!

Add a review

Your email address will not be published. Required fields are marked *

11 thoughts on "Related Categories for WooCommerce"

  1. Hi,
    It’s almost what I was searching. But I need another hook on archives pages.
    Could you please add this hook in the “position” drop-down menu for archives :
    woocommerce_after_main_content

    Thank you.

    1. Hi Didier,

      Sure. Please update the plugin to the latest v1.3.1 – I’ve just added “Before main content” and “After main content” positions to the “Archives”.

      Please let me know if you have any other ideas/comments. And if you like the plugin, please consider leaving me a review.

    2. Thank you very much Tom ! You’ve been very helpful.

  2. It 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?

    1. Hi Tamar,

      Please give me a minute – I will try to implement it right now. I will get back to you shortly.

    2. Hi 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.

    3. Thank 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?

    4. Hi,

      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.

    5. It 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.

    6. Yes 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!

    7. Hi 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Changelog

1.4.0 - 17/04/2020

  • Fix - Settings - Per product - Bug (when empty "Categories" value is not being saved) fixed.
  • Dev - Relate Options - Siblings - "Include grandparents" option added (defaults to yes).
  • Dev - Relate Options - Siblings - "Include top-level" option added (defaults to no).
  • Dev - Relate Options - Siblings - "Include grandchildren" option added (defaults to yes).
  • Dev - Relate Options - Children - "Include grandchildren" option added (defaults to yes).
  • Dev - Relate Options - Parents - "Include grandparents" option added (defaults to yes).
  • Dev - Single - Advanced Options - 'Hide "Related products"' option added.
  • Dev - Settings - Restyled (show_if_checked properties added).
  • Dev - Settings - "Reset settings" notice updated.
  • Dev - Admin action link description updated.
  • Dev - Code refactoring.
  • Requires at least: 4.7.
  • WC tested up to: 4.0.
  • Tested up to: 5.4.

1.3.3 - 19/02/2020

  • Dev - get_related_categories_single() - Additional $product safe checks added (produced log errors on some servers).

1.3.2 - 31/01/2020

  • Fix - Relate Options - Siblings - Current category removed.
  • Dev - [alg_wc_related_categories_single] and [alg_wc_related_categories_loop] shortcodes added (and "Disable" option added to "Position" in both single and archives settings).
  • Dev - Admin settings descriptions updated.

1.3.1 - 30/01/2020

  • Dev - Archives - Position - "Before main content" and "After main content" positions added.

1.3.0 - 22/01/2020

  • Dev - "Archives" options section added.
  • Dev - "General" options section renamed to "Single".
  • Dev - "Plugin enabled" option removed.
  • Dev - Code refactoring.
  • WC tested up to: 3.9.

1.2.0 - 21/01/2020

  • Dev - Relate Options - "Per category" option added.
  • Dev - Relate Options - Per product - "Override" option added.
  • Dev - Code refactoring.

1.1.0 - 03/01/2020

  • Dev - Code refactoring.
  • Dev - Admin settings descriptions updated.
  • WC tested up to: 3.8.
  • Tested up to: 5.3.

1.0.0 - 13/05/2019

  • Initial Release.

Prices & Licenses

Single siteUnlimited sites
1 year[buy] $29.99 $19.99 / year[buy] $79.99 $49.99 / year
Lifetime[buy] $49.99 $29.99[buy] $149.99 $79.99

Installation and Updates

  • Buy the plugin 🙂
  • Download plugin's zip to your computer (you will receive an email with download link, or you can always download the plugin from your account).
  • Go to "Admin Dashboard > Plugins > Add New > Upload Plugin" and browse for downloaded zip file.
  • If plugin is successfully installed - you should see it added to the Plugins list.
  • To keep WPFactory items up to date, please install WPFactory Helper plugin and enter your site key.

Refunds

We want to ensure that you are 100% happy with your purchase, so if you feel the product(s) you purchased are not the best fit for your requirements and you attempted to resolve issues with product's author, we are offering 30 day money back guarantee refund policy.