I want to make an add to cart, until now I am still confused how to make it? do I have to use cookies or local storage? because so far I only understand a little using localstorage. I use vue.js using Vuex. what I hope is if the user presses the add to cart button it will be stored in local storage and can see it in the shopping cart.
i want to check if product:id and productsize id same in other index so give a warning or alert
NOTE : What am I doing right? if not please explain :(