Skip to content

feat: implement advanced shopping cart engine with dynamic promo calculation and persistent state - #418

Open
Babin123456 wants to merge 1 commit into
janavipandole:mainfrom
Babin123456:feat/advanced-shopping-cart-engine
Open

feat: implement advanced shopping cart engine with dynamic promo calculation and persistent state#418
Babin123456 wants to merge 1 commit into
janavipandole:mainfrom
Babin123456:feat/advanced-shopping-cart-engine

Conversation

@Babin123456

Copy link
Copy Markdown
Contributor

Related Issue

Closes #417

Summary

Implements a modular Shopping Cart & Dynamic Order Calculation Engine for Furnix storefront, complete with promo code validation, tax estimation, threshold shipping, and clean state persistence.

Changes Made

  • Created scripts/cart-calculator.js for pure math, currency formatting, and coupon rules (FURNIX10, ECSOC2026).
  • Created scripts/cart-engine.js for item management, quantity safety bounds (1-99), and custom event dispatching.
  • Updated cart.html with interactive promo code input and order summary breakdown.
  • Updated app.js and style.css for event handling and promo styling.
  • Deleted legacy Furnix-main/cart.html file.

Testing

  • Executed pure unit tests via Node.js runtime (node -e "const calc = require('./scripts/cart-calculator.js'); ...").
  • Verified responsive layout across mobile and desktop breakpoints.

Impact

Improves storefront reliability, user engagement, and e-commerce cart management.

Checklist

  • Code follows project standards
  • Tested locally
  • No unrelated changes included
  • Responsive design verified
  • Accessibility considered

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

@Babin123456 is attempting to deploy a commit to the janavipandole's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ECSoC_2026] feat: Implement Advanced Shopping Cart Engine & Dynamic Order Calculation

1 participant