-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add discount codes support within the Checkout #690
Comments
Related to #691 |
I've created the API methods:
The example coupon code is ARMANI (-45%) |
@karolbzik will add the Microcart.vue UI controls for this |
@akbarik I tried to design it in the simplest way but for all critical use scenarios. Design for the sidebar cart with 1) already defined discount code (name + value) 2) link to add a discount code 3) discount code can be removed by clicking the closing icon. After clicking "add a discount code" link - the form appears with a field for a discount code and a button to submit the code. After clicking "add a discount code" it returns to the first view. |
@karolbzik, thanks a lot! |
GET /V1/carts/{cartId}/coupons
GET /V1/carts/{cartId}/coupons
PUT /V1/carts/{cartId}/coupons/{couponCode}
DELETE /V1/carts/mine/coupons
The option should be available only when
config.cart.synchronize_totals
is turnedtrue
The text was updated successfully, but these errors were encountered: