Skip to content

Improve handling Product Page Variant Select Quantities  #177

@chrismekim

Description

@chrismekim

image.png

In add-to-cart-container.liquid, we have a quantity select dropdown and a variant select dropdown.

For lack of time, the quantity select dropdown was implemented to show options 1 - 10, regardless of the selected product variant's available inventory. This was discussed in this PR.

The problem:

  • A user can try to add more items than available. They won't be able to successfully do this, but there is no feedback that this action failed.

Possible solutions:

  • Have eventListeners to listen when the "selected" variant changes, and update the quantity based on the selected product variant's inventory
  • Show a notification to let the user know they are not able to add the quantity selected.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions