In this video we will see how to apply discounts programmatically from a Shopify Theme by using the newly introduced Discount AJAX API. With this API we will be able to apply and remove discount codes from within a Shopify Theme's cart drawer, cart page, or anywhere else in the theme where it makes sense to have a discount codes field.
🟢 My links
- Website - https://stackingcontext.com
- Support This Project - https://stackingcontext.com/support
- Let's work together - https://stackingcontext.com#contact
- Get Early Access To New Videos - https://www.youtube.com/@stackingcontext/join
Resources
- Apply Discount Code with the Update Endpoint Reference - https://shopify.dev/docs/api/ajax/reference/cart#post--locale-cart-updatejs
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.