Hi All,
We run a medium sized ecommerce website on a custom website integrating with shopify using the js-buy-sdk. One thing we have discovered (and so have some of our customers). Is that our discount codes aren’t locked down. Locked down meaning they aren’t responding to the settings in Maximum Discount Uses (Limit number of times this discount can be used in total. And Limit to one use per customer.
Our discount implementation is very similar to the demo in the read me https://github.com/Shopify/js-buy-sdk#adding-a-discount
const checkoutId = 'gid://shopify/Checkout/e3bd71f7248c806f33725a53e33931ef?key=47092e448529068d1be52e5051603af8'; // ID of an existing checkout
const discountCode = 'best-discount-ever';
// Add a discount code to the checkout
client.checkout.addDiscount(checkoutId, discountCode).then(checkout => {
// Do something with the updated checkout
console.log(checkout);
});
If you have any suggestions as to how I can make the checkout respect this discount rules. Please let me know