Drupal 7 Create a new account for an anonymous order only for commerce license orders

Created on 23 January 2015, over 10 years ago
Updated 19 August 2025, 4 days ago

I know that this is related to Rules, but since Commerce relies heavily on Rules for customization and it specifically has to do with the Commerce License as an entity, I'm posting this support request here.

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

I have looked everywhere and can't tell if this functionality is possible. It would seem though that I'd be able to tell rules to distinguish between Commerce License orders and other orders.

💬 Support request
Status

Closed: outdated

Version

1.3

Component

Miscellaneous

Created by

🇫🇷France Samlet9908

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024