I need to check with the Rules module whether a field is greater than some value. To be more precise, if the size in cm of a product (the field size is created through the Commerce Physical module) is > than 5000.

How can I do this? I tried to add a 'Data comparison' but i only get "equals" or "is one of" when i select the comparison operator. I would have expected an "is greater than".

1 Answer 1


Check what kind of field you have. If you have an Integer field, "is greater than" and "is less than" will be available for Data comparison. Perhaps you mistakenly set it to text? If so, you may need to delete the field and create it again.

  • You are right that's the problem, i thought that by selecting line-item:commerce-product:field-product-dimensions i was referring to the measurement of the object (Weight * Height * Lenght) but i don't think that's the case. I need to calculate that by hand, any idea on how to do that? Apr 23, 2012 at 14:43
  • Sorry, I don't. You'll have better luck asking a new question I think. Apr 23, 2012 at 15:00

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.