Feature #10470
openShop home flash-offer popup was hardcoded ("10% off your first order"). It now loads from a Coupons *Welcome* coupon created in admin. Coupon Type was missing on Create Coupon and is restored.
Start date:
08/20/2026
Due date:
08/20/2026 (29 days late)
% Done:
100%
Estimated time:
8:00 h
Spent time:
Description
- Create Coupon: Type field restored — Discount, Welcome, Free Delivery (it had been removed; new coupons were always Discount)
- Welcome type defaults Applicable For to Order so the coupon works on the shop
- Coupon list shows Welcome (not always Discount)
- New public API:
GET /v1/nus-shop/welcome-coupon - Home flash popup (guests, after 30 seconds) uses that Welcome coupon: title, %, amount, code, min order
- If there is no active in-date Welcome coupon, the popup does not show
- Popup is not hardcoded 10% anymore
h2. How to test - Admin → Coupons → Create Coupon → Type = Welcome → set discount, dates, Applicable For = Order → Active → Save
- Restart backend if it is already running
- Open shop as guest (logged out) on home
- Wait 30 seconds — popup should match the coupon (title / % or amount / code)
- Login or dismiss — should not keep showing
- No Welcome coupon / inactive / expired — no popup
h2. Apps - Admin FE:
evergreen_pos_fe(Create Coupon, Coupon list) - Shop FE:
evergreenpos_E-commerce_new(FirstOrderPromoDialog) - Backend:
evergreen_pos_be(getPublicWelcomeCoupon,/v1/nus-shop/welcome-coupon)
h2. Not in this task - Product Offers carousel (separate from this coupon popup)
- Changing checkout coupon apply logic (Welcome first-order rule was already there)
Subtasks
Related issues
Updated by Pavan Kumar Murala 29 days ago
- Due date set to 08/20/2026
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Estimated time set to 8:00 h