Hi, everyone:
I am trying to set up my shopping cart in local storage for the first time. I am not sure whether to use one of the storage plugins or the toolbox plugin as I am having trouble testing them out. I have noticed that the plugins ask for data to be in key-value pairs, and the data I have looks like the following:
Obj1 = {“Item”: “Membership”, “Version”: “VIP”, “Price”: 40}
Obj2 = {“Item”: “Sunday Dance”, “Version”: “2Hr”, “Price”: 20}
My understanding of my example is that there are 6 key-value pairs, but isn’t there a way to store the data so that key = Obj and value = {…}?
Or is my approach in setting up a cart for logged-out users completely wrong?
Thanks.