I have 3 elements with the same tags, if I delete one of them, I want to delete them all.
I can’t group them together in any way, the tag check doesn’t work.
if( cartItem.tags.indexOf('dubble-panel-for-devise') > -1 ){}
Added classes to items, if there is a click on one of the items, so that other delete buttons are triggered by the click
$('.main_prod').on('click', '[data-cart-remove]', function (){
$('.child_prod [data-cart-remove]').trigger('click')
})
Now when you delete a product, the query gets all three https://prnt.sc/nXMzzX-NC8Ya , but only one of the products is deleted
Would appreciate any tips/solutions, thanks