I've tried everything I can possibly think of to get the following to work:

I have a rule triggered on the "Order contains a particular product" event. What I need in the actions section is access to the order fields. Particularly the customer profile data. It seems the "Billing Information" field (commerce_customer_billing) is never available when I need it.

I tried adding an action fetch entity by id but the billing reference field is not available. The only place in rules that I have found that it is available to actions is when I tried setting a text data value in a new entity and one of the replacement tokens available was commerce_customer_billing. Seemed very random that what should probably be an integer id (reference) was available for a text field, but never for an integer id.

So at the moment rules integration including these order fields are really not all that useful so I'm submitting this as a bug report.

Any suggestions?

Comments

rszrama’s picture

Category: bug » support
Status: Active » Closed (duplicate)

You need to do a data comparison on commerce-order:type. See http://www.drupalcommerce.org/faq/rules-field-data-selection.