• Resolved wordpressuser2020

    (@wordpressuser2020)


    Hello All,

    Is there are plugin that will work to assign Woocommerce products to categories or even custom fields dynamically? I have a plugin that needs each product to only be assigned to a single category. So, currently the only workaround is to create multiple products and place each in a different category. What I would life is to be able to have my four categories presented to the user and when they click on the category the plugin would assign all the products to that category or custom field. Is this remotely possible?

    Thanks!

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

    (@conschneider)

    Engineer

    Hi there,

    What I would life is to be able to have my four categories presented to the user and when they click on the category the plugin would assign all the products to that category or custom field.

    Do you need this in the backend for administration or is this for the front end as a kind of customer selection process?

    Kind regards,

    Thread Starter wordpressuser2020

    (@wordpressuser2020)

    Thanks for the reply.

    Your question actually makes me see the challenge in performing this as a frontend selection process since the categories are assigned store wide at the backend. So, leaving the categories in tact and assigning some dynamic product tags would likely be a better solution since I have no plans to use product tags. And yes, it does need to be for the front end. For example, if the customer selects the 5 meal plan, then it assigns the product tag of “5_meal” to all the products just for that customer and just for that session. This will allow the min/max plugin that I’m using to then restrict the cart appropriately. However, product tags should be empty by default and only receive assignments based on the customer’s selection during their current session.

    Hope that makes since. Thanks!

    Plugin Support lionel.a11n

    (@lioneldaniel)

    Hello @wordpressuser2020,

    The default WooCommerce approach to this problem would be to either create different variations for each of the options (3_meal or 5_meal for instance), or to create different versions of the products as separate products with the appropriate category or tag so they could all be lumped together.

    Some Business to Business (B2B) and wholesale type plugins have some user-role based variable price displays on products, which might point you in the right direction. To make that strategy work, you probably would need to find a way to allow users to change roles themselvesa>.

    Here are some plugins that might point you in the right direction:

    A more direct approach requiring custom development would be to filter the shop product prices and display (maybe even your min/max plugin behavior) based on a customer option users are set up to change. You or your developer could use get_user_option() to then determine which categories, tags, variations, or min/max values to permit the user to see.

    If you are putting a solution together yourself, I recommend checking out the WooCommerce Community Slack. You can also hire a developer to help you, for assistance I recommend reaching out to someone on our [customizations page](https://woocommerce.com/customizations/).

    I hope that helps put you on the right track. As this is pretty far outside core WooCommerce support, I’m going to mark this thread as resolved, and if you have further questions regarding WooCommerce please feel free to open a new topic.

    Thanks!

    • This reply was modified 4 years, 10 months ago by lionel.a11n. Reason: Formatting errors
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin that will assign products to categories dynamically’ is closed to new replies.