Project

General

Profile

Edit Copy Actions

Feature #10470

open

Shop 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.

Added by Pavan Kumar Murala 29 days ago. Updated 29 days ago.

Status:
Resolved
Priority:
Normal
Target version:
-
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
    1. Admin → Coupons → Create Coupon → Type = Welcome → set discount, dates, Applicable For = Order → Active → Save
    2. Restart backend if it is already running
    3. Open shop as guest (logged out) on home
    4. Wait 30 seconds — popup should match the coupon (title / % or amount / code)
    5. Login or dismiss — should not keep showing
    6. 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)

Add

Subtasks


Add

Related issues

Actions #1

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
Edit Copy Actions

Also available in: Atom PDF