0

If the customer selects my custom attribute products like "XYZ" to cart, after the customer not able to add other products to cart, the message showed "XYZ" attribute products present in the cart. and also other attributes products present in the cart, not able to add my "XYZ" attributes products to cart.

How can I do it by using Shopping Cart Price Rules?

Is any other options exits, let me know.

2
  • 1
    @TejabhagavanKollepara : my question regard magento1
    – zus
    Aug 7, 2017 at 7:01
  • I just removed. dont mind. check and comment at existed answer. Aug 7, 2017 at 7:04

1 Answer 1

0

It is not possible using Shopping cart Price Rule Like if Product is added into cart then Restrict user to add more products into cart.

For this, you need to develop custom functionlity that will be implemented on before add to cart event and check if product is added into cart or not.

For Reference:

Magento2 - How to stop a product from getting added to cart programmatically?

3
  • make sure my question is relevant to this one :::: Magento2 - How to stop a product from getting added to cart programmatically?
    – zus
    Aug 7, 2017 at 7:11
  • i need :::::: If the customer selects my custom attribute products like "XYZ" to cart, after the customer not able to add other products to cart.
    – zus
    Aug 7, 2017 at 7:13
  • yes this event will work for your requirement Aug 7, 2017 at 8:26

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.