0

Hello i want to do if there is simple product is added in cart then when customer is try to add configurable product then they should get message "you can't add configurable product with simple product please remove simple product from cart and then add the configurable product" i want this functionality how can i achieve this?

1 Answer 1

0

You can use event checkout_cart_save_before, and check the current adding product to the existing ones and apply conditions as per your need and set the message.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.