how can I get the quantity of an item to show up on the page? It shows how to make it show on a page with a table generator, but I want it to show on the page via a dynamic attribute.
Tried "cart.data[0].quantity" but I would need the 0 to match the item position in the dataset somehow.
Also tried "cart.data.where(`item_id`, item_id, '==')" where it would match the item id in the data store to the one on the page, but I don’t know how to then grab the quantity from the cart data.
First time using data store and assuming I’m just missing something simple.
Also, for the record, in the page you don’t need to use the prefix content. - this prefix is because the cart is located on a page and not on the main template, hence it’s prefixed with “content”
I wanted to display the quantity of just the one item and have it next to where you would add that item to the cart. Which I did end up getting working.