You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a cart rule that applies 20% discount to all products in cart using coupon code 'BADWEATHER' (1 use per customer)
Use weather/temperature code to save temperature per registered users only [customer_id => customer_ip/temperature]
Use the flag table to store that data
Update flag entry every time the user logs in using the queue
Update flag entry via cron job customizable from the backend, set default time to every hour (only for logged-in users)
Create customization to apply cart rule for temperature range
Update flag entry via CLI
Show banner at the top of the page whenever the coupon link can be applied (meeting conditions based on temp range)
Apply coupon code automatically as 'bad weather' limit to 50 coupons. The user has the option to open a link to apply it.
User cannot apply coupon code manually, if applied, an event should be dispatched and an observer should verify the weather is indeed in the set range, but also has to check if code was applied previously for that user
Add test unit
The text was updated successfully, but these errors were encountered:
lastralab
changed the title
[TAN-0075] Apply coupon code automatically if weather is bad
[TAN-0084] Apply coupon code automatically if weather is bad
Mar 7, 2024
Requirements:
The text was updated successfully, but these errors were encountered: