This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add minimum quantity, maximum quantity, and step (multiple_of) to the…
… Cart Block and Store API (#5406) * add min and step to Store API * add min and step support * typo * Update assets/js/base/components/quantity-selector/index.tsx * Update assets/js/base/components/quantity-selector/index.tsx * Fix debounce callback * Style qty input to show steps * Implement quantity_limits in API * Quantity validation * Update product API * Normalize on + - * Separate add to cart events from cart item events in regards to limits * Prevent qty change for editable line items * Unify filters * Remove step number indicator from buttons ¯\_(ツ)_/¯ * Normalize on mount * Update docs Co-authored-by: Nadir Seghir <[email protected]>
- Loading branch information
1 parent
a5353c1
commit aa78099
Showing
23 changed files
with
815 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 47 additions & 1 deletion
48
assets/js/atomic/blocks/product-elements/add-to-cart/shared/quantity-input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.