Minimum Quantity for a specific category

Topic summary

A merchant wants to set a minimum order quantity for products in a specific category without modifying their store’s core code.

Recommended Solution:

  • Use Theme App Extensions (the current best practice for Online Store 2.0)
  • This replaces the older ScriptTag method for injecting JavaScript to control Add-to-Cart behavior

Resource Provided:

  • Official Shopify developer guide for building theme app extensions

The discussion remains open, as the merchant hasn’t confirmed whether this approach meets their needs or if they require additional implementation guidance.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hello.

I’d like to add a minimum quantity for a specific category in my store.

How can I do this things without affecting store code?

Hi @RonaldS11 ,

Before Online Store 2.0 ScriptTag was the way to inject JavaScript to modify the behaviour of Add-To-Cart. Theme extension is now the recommended approach.

here is the dev guide:

https://shopify.dev/docs/apps/build/online-store/theme-app-extensions/build

If this answers your question please mark as solved.