Thanks Teo. I updated it and it is slightly better in that the quantity being added is one, but it is not updating the quantity to an existing entry just adding an additional item.
You must be doing something wrong in your upsert action. Show me a screenshot of how it is set up?
I see in your page code:
{Product_id: produceId},{Product_id: product_id.value
please change that to:
{Product_id: produceId},{Product_id: produceId
Thanks Teo, that fixed along with changing the quantity
Iām about to start doing the same, did you get the total of all items figured out?
Thanks in advance,
Twitch
I created a variable and set its value to datastoreCart.data.sum('totalprice')
where totalprice
is part of my datastore row (productprice * quantity
).
2 Likes
@sitestreet thanks for the reply. I ended up just modifying the code from the tutorial to use my server connect.
{{scVendorCart.data.qCart.sum((current_price*quantity)
).formatCurrency(ā$ā,ā.ā,ā,ā,2)}}
1 Like