Attached patch creates a new rule condition that allows you to check for the presence of a particular line item bundle on an order. It uses an operator check to see if the number of matching line items meets some criteria.

This rule would allow you to:

  • Check for the presence or lack of a shipping line item.
  • Check for a certain number of product line items.
  • Look for one or more discount line items.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kenorb’s picture

Chris Matthews’s picture

The 4 year old patch to commerce_order.rules.inc applied cleanly to the latest commerce 7.x-1.x-dev, but still needs review.