delete group product with child from cart

1 0 0

I customize the theme also a cart page. I use my product id as a parent id and other three product as a child id.
when user select the product and add to cart I hide the child product and display only parent product. when user
delete any product I also delete child product base on parent product id.
But, issue is that when I came back from check out page and add any other product in cart the flow is change. it
print in reverse order. child consider previous product's parent id as parent. when ever add new product all child
product parent id change to Older products parent id as their parent id. so delete functionality don't work. when
delete all products some last products can't delete from the cart.

*note:  all child product id are mostly same




Replies 0 (0)