Hi everybody, a couple of days have brought to no result and I didn’t find anything in the forum yet.
I’m trying to use a list custom state in my cart page to allow customers to update (+ or -) the number of each item in the cart. I already have done it saving every new value to the DB, but I’m trying to keep the process light with only one save to the DB (button update cart).
My original idea:
- on page load a custom list is populated from the cart DB data type (here no problem)
- click item + or - increases or decreases the value of the corresponding custom state list n-value. To achieve this I thought I could use :item#current cell’s index.
Well all my efforts brought to nothing:
The problem is the I cannot address a single value of the custom state list, as if it was an array.
Custom state is a list, and to change a single value I have to address a number.
I guess this would be possible with a plugin such as @Keith List Shifter (correct?)
But the real question is: is it also possible out of the box, without plugins?
Thank you to whoever will want to help!
Al the best