Hi there!
I have an app idea in which customers are offered limited time discounts on checkout. For example when the user adds products i the cart he will be shown a discount but the discount will only be valid for x amount of time let's say 10 minutes after the timers runs out the discount will be expired.
Is this something shopify allows?
This sounds like an interesting project! I believe that you can manage the customer's cart via the Storefront API. So theoretically could store the timestamp of the discount being pulled into a client-side cookie. Set the cookie to expire in 10 minutes. Then if the cookie doesn't exist any longer the discount could be removed. I'd look here for getting a start --> https://shopify.dev/docs/storefront-api/reference/checkouts/checkoutdiscountcodeapplyv2.
User | Count |
---|---|
12 | |
12 | |
7 | |
6 | |
5 |