-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## What's the purpose of this pull request? To enable the `unitMultiplier` prop to be used on the `quantity-selector` molecule, as part os the Faststore B2B initiative. The funcionality delivered by this PR already exists on Storeframework and is related to a mandatory field on the sku registry. Every single SKU has a quantity progression that is the result of configuration (The standard configuration being one, resulting in the more common case where the quantity increses in increments of 1) [Product Vision](https://docs.google.com/document/d/17tJprtQEs9izw6Zh49thA90NuljoFLoMOyHwJvJAH1Q/edit#heading=h.tglo77yl0lf5) [B2B Faststore Initiative ](https://docs.google.com/document/d/19jAFzUTJRhDSK5b6ieNigxDu5NnPC5gghPkMIaP6ic8/edit#heading=h.tglo77yl0lf5) [Packing RFC](https://docs.google.com/document/d/1fqhL6ue9isar7UF3CmKlspxHUta7DzTv6D18DazxoRo/edit#heading=h.tglo77yl0lf5) ## How it works? When `useUnitMultiplier` is enabled, quantity-selectors will increase on increments of the number defined on the UnitMultiplier field from that sku. Demo: On, on an sku with unitMultiplier of 3.5 https://github.com/vtex/faststore/assets/56592231/f25df0ef-9bde-4d85-9b27-13bd380c45ca On, on an sku with the default unitMultiplier of 1 (Every SKU has a value for this prop, it's mandatory) https://github.com/vtex/faststore/assets/56592231/f2974361-ac23-4b37-aba9-7c71756c950f ## How to test it? **Using the prop:** - On `faststore.config.default.js` change (To use an account with unit multipliers that are not 1): - storeId: b2bfaststoredev - workspace: evertonprod Or you can use [this preview](https://sfj-1ce2884--b2bfaststoredev.preview.vtex.app/): Product with unitMultiplier as 3.5: `precision-pro-fspe-100-jigsaw2-84/p` Product with unitMultiplier as 1: `combination-spanner-set-storage2-88/p` --------- Co-authored-by: Everton Ataide <[email protected]> Co-authored-by: Victor Hugo M. Pinto <[email protected]>
- Loading branch information
1 parent
1e25e0e
commit 8aea48f
Showing
13 changed files
with
127 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.