How can I limit product order quantity to one in Dawn Theme?

Topic summary

Goal: Limit the product order quantity to 1 for specific items in Shopify’s Dawn theme.

Key approaches discussed:

  • Use Liquid conditionals around the quantity block based on product identity:
    • By handle: compare product.handle to a specific handle.
    • By tag: check if product.tags contains a marker (e.g., “noquantity”).
  • Use alternate product templates and assign them per product via the Shopify admin sidebar when the theme provides an alternate template.

Implementation outcome:

  • A tag-based check (e.g., if product.tags contains “noquantity”) was implemented successfully to control the quantity UI for specific products.
  • One note warns Dawn’s +/- buttons may ignore the input’s max attribute, suggesting replacing the quantity-input component or using a hidden input for strict enforcement. The OP reported max worked globally but needed per-item targeting, which the tag approach solved.

Resources: A link to Shopify docs on applying templates and a video tutorial were shared.

Status:

  • Original issue resolved via tag-based conditional logic.
  • New follow-up asks how to limit to 5 per product and where to insert code; not yet answered.
Summarized with AI on January 2. AI used: gpt-5.

@PaulNewton sorry that didn’t work for me, when I just put a max attribute to the original code, that works but I can’t point to a specific Item. When i create a new template how can I use this then?