Skip to content

Feat/product variants#410

Merged
Aamod-Dev merged 3 commits into
niharika-mente:mainfrom
nikhildhamdhere15:feat/product-variants
Jun 23, 2026
Merged

Feat/product variants#410
Aamod-Dev merged 3 commits into
niharika-mente:mainfrom
nikhildhamdhere15:feat/product-variants

Conversation

@nikhildhamdhere15

Copy link
Copy Markdown
Contributor

Description

Closes #260

Implements a full-stack data pipeline to support multi-attribute product variants (Size and Color) with independent pricing and stock tracking.

Changes Made

  • Database: Embedded variantSchema into product.model.js and added variantId tracking to cart.model.js.
  • Backend: Updated product and cart controllers to handle stock validation and variant filtering.
  • Frontend: Rewrote ProductPage.jsx with dynamic Chakra UI dropdowns for interactive variant filtering.
  • State Management: Overhauled the Zustand cart store to cleanly pass variantId payloads to the API.

Verification

  • Tested locally; verified dynamic UI price/stock updates and backend payload tracking.

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

@deepak70 is attempting to deploy a commit to the niharika-mente's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Aamod-Dev Aamod-Dev merged commit 26a6c3a into niharika-mente:main Jun 23, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Implement Product Variants (Size, Color, etc.)

3 participants