Quantity drop down selector only adds 1 to cart and doesnt see choice selected

Topic summary

A user implemented a dropdown quantity selector on their Shopify product page that populates based on available inventory. However, the selector always added only 1 item to the cart regardless of the selected quantity.

Root Cause:
The <select> tag wasn’t properly closed, and the name and id attributes were positioned outside the opening tag instead of within it.

Resolution:
A support member provided corrected code that properly structures the <select> element with attributes in the correct position. The user confirmed this fixed the cart quantity issue.

Remaining Issue:
While items now add to cart correctly, the popup cart notification still displays incorrect quantity information. The user has requested additional help to resolve this secondary problem and included a screenshot for reference.

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

Hi @Brad38 ,

I fixed it :

{{ 'products.product.quantity' | t }}

The cause of the error

Select Tag Issue: The