Is there a way to automatically set a primary category for WooCommerce Products?

#459308
  • Resolved IlPizza G.G.Service
    Rank Math free

    Hi, I have some questions related to WooCommerce “primary” category.

    1. what happens if I assign a product to more than on category but I don’t set a “primary” category? Which category will be used as primary?

    2. is there away to automatically set the primary category, in case the site administrator forgets to set it manually? I mean, something like: on product save, set as primary the category with lowest/highest ID or hyerarchy if no category has been set as primary. But maybe, depending on the answer to the previous question, this is not strictly necessary 🙂

    Thank you very much 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    1. By default, our plugin sets the first category that you select for your product as the primary category (if you have not set it manually or before enabling the Primary Taxonomy in Rank Math > Titles & Meta option).

    2. Yes, with Rank Math PRO, you can bulk edit your products to set the primary category. Here’s a link for more information:
    https://rankmath.com/kb/bulk-editing-in-rank-math/#num-5-5-advanced-quick-edit-options

    Hope that helps.

    Thank you.

    Hi Reinelle,
    thank you very much for your quick reply.

    You said “By default, our plugin sets the first category that you select for your product as the primary category” and that’s exactly what I needed to know. Maybe you should add this information in the “Knowledge base” documentation (https://rankmath.com/kb/how-to-choose-a-primary-category/), I guess it should be useful for other people 🙂

    Thanks again for your help, and best regards 🙂

    Hello,

    We are glad that we could address your concern. We are constantly improving our documentation and your feedback is very much valued.

    If you have further issues with our plugin, just let us know. We are here to help. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this ticket.