Skip to content

Add cart data model and multi-item foundation (Phase 1)#3

Open
Neche-Stephen wants to merge 1 commit into
namewiz:mainfrom
Neche-Stephen:feature/phase-1-data-model
Open

Add cart data model and multi-item foundation (Phase 1)#3
Neche-Stephen wants to merge 1 commit into
namewiz:mainfrom
Neche-Stephen:feature/phase-1-data-model

Conversation

@Neche-Stephen

Copy link
Copy Markdown

Introduce items array internally to replace flat pricing fields.

New src/cart.js with computeCartTotals() and normalizeItems().

Backward compatible — legacy single-domain attributes auto-convert to a one-item cart via normalizeItems().

Introduce items array internally to replace flat pricing fields.

New src/cart.js with computeCartTotals() and normalizeItems().

Backward compatible — legacy single-domain attributes auto-convert to a one-item cart via normalizeItems().
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.

1 participant