-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: shipping discount #6802
feat: shipping discount #6802
Conversation
Signed-off-by: vanpho93 <[email protected]>
|
dateApplied: new Date(), | ||
discountedItemType: "shipping", | ||
discountedAmount: discountedItem.amount, | ||
stackability: promotion.stackability, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we applying the shipping discount to items? Not sure that's how we want to do that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we are applying it to shipping only, as it shows on the Loom demo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems ok just have some questions:
- We are taking the discount on the shipping charge, not items right?
- We are taking the discount only on shipping and not on handling, correct?
- Have we taken into account when we may have a split shipment (i.e. two items in the shipping array)?
...es/api-plugin-promotions-discounts/src/discountTypes/shipping/applyShippingDiscountToCart.js
Outdated
Show resolved
Hide resolved
|
@vanpho93 Ok, double-checking whether we should discount handling or not, so hold on this. |
Signed-off-by: vanpho93 <[email protected]>
c8f8305
to
fb551ee
Compare
@vanpho93 Clarified with @brendan-shea-pm , discounts should only be taken against shipping, not handling |
Signed-off-by: vanpho93 <[email protected]>
Signed-off-by: vanpho93 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discounts don't display in quotes which is critical
Signed-off-by: vanpho93 <[email protected]>
Signed-off-by: vanpho93 <[email protected]>
Signed-off-by: vanpho93 <[email protected]>
Signed-off-by: vanpho93 <[email protected]>
Signed-off-by: vanpho93 <[email protected]>
Signed-off-by: vanpho93 <[email protected]>
@vanpho93 Can we add a shipping discount promotion to the sample data as well? |
Signed-off-by: vanpho93 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shipping quotes are not updated when a promotion becomes active after the cart already has quotes on it. Brian has identified the problem already and is working on a fix
Signed-off-by: vanpho93 <[email protected]>
Signed-off-by: vanpho93 <[email protected]>
Signed-off-by: vanpho93 <[email protected]>
Signed-off-by: vanpho93 <[email protected]>
Signed-off-by: vanpho93 <[email protected]>
Signed-off-by: vanpho93 <[email protected]>
eb0f31a
to
490044c
Compare
Signed-off-by: vanpho93 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work
Signed-off-by: vanpho93 <[email protected]>
@vanpho93 In the future please wait for all reviewers I've assigned to approve before merging |
Resolves #6773 #6767
Impact: major
Type: feature
Adding shipping discount with an option to prevent using 2 shipping discounts for one shipment.
Loom: https://www.loom.com/share/0ea5076ca3004ae9b1be6b3880a32e86