Got what is potentially a very rare case here
We have a gift card product set up as a customisable product. This has several customisable options that relate to value - £10, £25, £100 etc.
Our issue is that, if someone adds a £10 gift card and a £25 gift card, the microcart will basically show 2 of the £25 cards have been added.
From what I can tell, this is because the products all have the same SKU, and so the
CART_ADD_ITEM mutation in
cart/store/mutations.js is checking on the sku and updating the quantity, rather then adding the product, which logically is what you would expect.
Is there anything pre-built to handle this sort of scenario? We can differentiate the giftcards by their option_id but was hopeful someone else had come across this and had a solution, whether its somethif that would be better handled on the data layer or through storefront