Automatically add a Product in the CART if condition is met

Shopify Partner
1 0 0

Can anyone Help me with this i want to add a PRODUCT AUTOMATICALLY in the CART if the conditions is met this is the Condition.

When the “Leather Bag” -with variant options “Black” & “Medium “ is added to the cart. automatically add the “Soft Winter Jacket” product to the cart   for an additional price of 0.01$
- If “Leather Bag” is removed from the cart make sure “soft winter Jacket” is also removed. "


and i attach what i see in the SHOPIFY DOCUMENTATION the ADD TO CART API i copy that in the DOCUMENTATION this image in the bottom



and in my console this one



Replies 0 (0)