Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
commerce_order_rules_line_item_type_compare.patch | 3.27 KB | nvahalik | |
Comments
Comment #1
kenorb CreditAttribution: kenorb commentedComment #2
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 4 year old patch to commerce_order.rules.inc applied cleanly to the latest commerce 7.x-1.x-dev, but still needs review.