Project

General

Profile

Edit Copy Actions

Feature #11371

open

R&D on timezone- and weather-based product suggestions. and to implment the plan

Added by Ajit A 15 days ago. Updated 13 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Start date:
10/07/2026
Due date:
10/08/2026 (13 days late)
% Done:

100%

Estimated time:
16:00 h
Spent time:

Add

Subtasks


Add

Related issues

Updated by Ajit A 14 days ago

  • Subject changed from R&D on timezone- and weather-based product suggestions. to R&D on timezone- and weather-based product suggestions. and to implment the plan
  • % Done changed from 0 to 50
  • Estimated time changed from 8:00 h to 16:00 h

completed the research and generated a plan

Updated by Ajit A 13 days ago

  • Due date set to 10/08/2026
  • Status changed from New to Resolved
  • % Done changed from 50 to 100

Repository 1: Backend (evergreen_pos_be)
1. Key Features & Enhancements
Weather-Based Personalization & Flash Promo Engine:
Implemented

weatherPromo.service.js
,

weatherPersonalization.service.js
, and

locationResolver.service.js
for hyper-local weather detection and dynamic tag matching.
Implemented background cache warming cron

weatherCacheWarmingCron.js
and weather alert notification dispatchers

weatherNotificationCron.js
.
Cart & Order Weather Promo Resolution:
Integrated

cart.service.js
with in-memory tenantWeatherTagsCache (30-minute TTL) and slug normalization to evaluate promotional pricing with zero database latency overhead on Add-to-Cart / Cart Fetch.
2. Bug Fixes & Improvements
Loyalty Points Calculation Fix:
Fixed

loyaltyProgram.service.js
and

loyalty.controller.js
to accurately compute "Points to Earn" on promotional discounted totals instead of returning 0 or NaN during checkout.
Database Model Updates:
Extended category and product schemas (

Categories-model.js
,

productModel.js
,

nursery.product.js
) with weather-adaptive metadata attributes.
Repository 2: E-Commerce Storefront (evergreenpos_E-commerce_new)
1. Key Features & Enhancements
Live Weather Recommendations UI:
Added

WeatherPicks.tsx
dynamic product carousel and

useActiveWeatherPromo.ts
hook for client-side promo evaluation.
Storewide Promotional Pricing Display:
Updated

ProductUnifiedCard.tsx
,

productdetailsui.tsx
, and

CartItemVariantSelector.tsx
to reflect dynamic weather discounts across listing, details, variant selectors, and cart.
2. Bug Fixes & Refinements
Add-to-Cart Reference Error Fix:
Fixed ReferenceError: p is not defined in

ProductUnifiedCard.tsx
when adding promotional products directly to cart.
Cart State & Price Synchronization:
Standardized

useCart.tsx
,

cart.tsx
, and

CartItemCard.tsx
so subtotal calculations, guest storage, and server synchronization prioritize the evaluated promotional price.
Cleaned up line item layout in cart by commenting out the redundant flash badge while retaining the strikethrough original price and promotional total.
Checkout & Preorder Consistency:
Updated

Checkout.tsx
,

CheckoutPreorder.tsx
, and

CartItemsList.tsx
to ensure accurate final price submission and display of earned loyalty points.
Repository 3: Admin / POS Frontend (evergreen_pos_fe)
1. Key Features & Enhancements
Weather & Season Rules Management:
Implemented

WeatherSeasonRulesPage.tsx
allowing nursery admins to configure weather conditions, temperature triggers, discount percentages, and tagged categories.
Added sidebar navigation and route declarations in

router.tsx
and

mainRouter.tsx
.
Category Weather Tagging:
Updated

Categories.tsx
and

CategoryModal.tsx
to support assigning weather/season attributes to catalog categories.
Tenant Routing & Session Hardening:
Enhanced

TenantSessionGuard.tsx
and

productHost.ts
for multi-tenant isolation and session persistence.

Actions #3

Updated by Ajit A 13 days ago

  • Due date changed from 10/08/2026 to 10/09/2026
Actions #4

Updated by Ajit A 13 days ago

  • Due date changed from 10/09/2026 to 10/08/2026
Edit Copy Actions

Also available in: Atom PDF