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.

  • 1
    @TejabhagavanKollepara : my question regard magento1 – zus Aug 7 '17 at 7:01
  • I just removed. dont mind. check and comment at existed answer. – Teja Bhagavan Kollepara Aug 7 '17 at 7:04
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?

  • make sure my question is relevant to this one :::: Magento2 - How to stop a product from getting added to cart programmatically? – zus Aug 7 '17 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 '17 at 7:13
  • yes this event will work for your requirement – Pankaj Pareek Aug 7 '17 at 8:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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