Avatar of narmi2
narmi2
 asked on

JSON Shopping Cart

Dear Experts.

What is the best way to structure shopping cart data JSON style?

Thanks in advance.
JavaScriptPHP

Avatar of undefined
Last Comment
narmi2

8/22/2022 - Mon
Michael701

I don't think anyone can say there is a BEST way to create a shopping cart. I'd first have to ask what kind of items are you placing in the cart? A simple cart would have Line item, item code, description, quantity and price. More complex items may need size, color or other descriptors.
narmi2

ASKER
I will be needing at least the following

item id
item name
item price
quantity
ASKER CERTIFIED SOLUTION
Badotz

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
narmi2

ASKER
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Badotz

The strong, silent type, eh?

No worries - glad to help.
narmi2

ASKER