Add to cart, validate custom line item field using rules
Hi all,
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?
Thanks!
Comments
Solved
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:
http://www.drupalcommerce.org/faq/rules-field-data-selection
http://drupal.stackexchange.com/questions/54789/why-cant-i-access-my-cus...
Thanks,
Terry.