• Resolved pbucevac

    (@pbucevac)


    I would like to implement a feature on my WooCommerce shop website where a product is automatically assigned to a specific category (let’s call it ‘LAST PIECES’) when its stock quantity drops to 5 or fewer items. This should be done dynamically, without manual intervention, so that as soon as a product’s stock reaches or falls below 5 units, it gets categorized under ‘LAST PIECES’ category. We have attempted to achieve this through PHP code, but it was unsuccessful. Additionally, I am using the Woodmart theme. Is there a plugin or solution available for achieving this functionality.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @pbucevac,

    Thank you for reaching out to us with your query. I understand you’re looking to have products automatically assigned to the ‘LAST PIECES’ category when their stock quantity drops to 5 or fewer items. Automating category assignments based on stock levels is indeed a smart way to manage your inventory visibility. While WooCommerce doesn’t offer this functionality out of the box, I believe the Bulk Category Editor for WooCommerce extension could be a step in the right direction. This tool won’t automate the process, but it will make bulk editing categories much easier. You can find more information about this extension here.

    However, to achieve the level of automation you’re looking for, it might require custom development. Please note that writing or providing custom code is not within the scope of our support policy. For development and custom coding questions, it’s best to ask for insight related to those on either the WooCommerce Advanced Facebook group or the WooCommerce Community Slack. You can also seek help from the following:

    I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto-Assign Category by Stock (Woodmart Theme)’ is closed to new replies.