Add to cart, validate custom line item field using rules
I am trying to compare a field in the custom line item i created against a field in the product display using Rules
I have tried creating a new rule and used " Before adding a product to the cart" as event but when i try to set the condition, "Entity has field" , i cannot find Node listed there..
Is there any way to do this?
I finally did the comparision so that the line item custom field is compared to a field in the product types.
This video helped me a lot: http://www.drupalcommerce.org/videos/tutorials/removing-items-cart-using...
Thanks rfay for the video.
Hi, you will need to add
Hi, you will need to add "Entity is of type" as a condition too. Then your fields should show in Rules.
Here is more information: