Have been trying for a while now with the rules module to stop a product adding to the cart when another particular product is added to no avail for example:

Insurance level 2 is in the cart then Insuance level 3 should not be able to be added to the cart.

Any ideas please do not say by a hook as iam not a programer.

Comments

colinstables created an issue. See original summary.

Subhransu.addweb’s picture

At a time only one product can follow checkout process by creating rules. For creating rules check this url.

Hope this helps you.

Thanks!

colinstables’s picture

Thanks denisha,

However i dont want to remove all the products from the cart just prevent add Insuance level 3 to the cart when Insuance level 2 is already there.

tr’s picture

Assigned: colinstables » Unassigned
Status: Active » Closed (won't fix)
Issue tags: -rules integration, -add to cart

Yes, this can be done. But you don't say what module you're using - Ubercart? Commerce? Regardless, best to ask the question in the issue queue for that module, not here in Rules.