1

With Drupal 7 using Rules 7.27, I've installed and set up Drupal Commerce with no real problems.

The rule ‘Create a new account for an anonymous order’ works well but I need to add a condition that only executes the action of creating a new account only if the product being ordered is a Commerce License. Commerce License is an entity so I tried both of the following conditions, but they prevent the Rules actions from triggering:

Entity is of type: Parameter: Entity: [site:current-cart-order], Entity type: Commerce License

Entity is of type: Parameter: Entity: [commerce-order], Entity type: Commerce License

It's apparent I don't have a full grasp of how to tell the Rule that the order processed is not just any old order but a specific order type. I would be fine with identifying it with any criteria possible, like product/order name, but it seems that I've hit a blockage in understanding the whole Commerce universe in relation to Rules.

Does anyone have any idea what conditions to specify to tell the actions only to fire if the order is for a commerce license?

Ben
  • 21
  • 4

1 Answers1

0

Use the condition Commerce Order: Order contains products of particular product types.

scronide
  • 12,012
  • 3
  • 28
  • 33
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. – Julian F. Weinert Jan 26 '15 at 23:03
  • The question was what condition to specify. This is the condition. – scronide Jan 27 '15 at 21:14
  • 1
    I actually did use this as a condition to solve my problem. The misunderstanding was as to what 'product type' means. I was thinking that it meant another Content Type with a product reference, so missed that first off. thanks for answer anyway. – Ben Jan 30 '15 at 13:39