I have this issue:I have on a product display a "Featured" checkbox. I want when this "Featured" checkbox be selected,the price of the product to be increased by some amount when being added to the cart. So:Normal product will cost 100$ ,if Featured is selected the price will be +50 (150$). Can this be done with a rule?If so,how? thanks

1 Answer 1


Event: adding product to the cart. Conditions:
1. Entity has field (the featured field). 2. Data comparison: (is that field "on"?) Action: add amount to the unit price.

I'm not looking directly at the Rules interface, but that should get you well on the correct path.

  • Thanks for the answer.Still I cannot make it work.The issue is that the field exists only on the product display,so when I do Data comparison I cannot grab that field.
    – Dion
    Mar 3, 2015 at 11:16
  • You may need to move it to the product entity. Or within a custom Rules condition, you could run an entity field query for all displays that reference that product. Provided the product is present on only one display.
    – daviedos
    Mar 3, 2015 at 14:55
  • Is there a hook/code so as to inject the product field to the product display?thanks
    – Dion
    Mar 4, 2015 at 10:20

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.