Commerce Order Sub-total
Categories
Component ID
2718047
Component name
Commerce Order Sub-total
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
The idea behind the module is to provide useful sub-totaling of Orders using the Rules framework. This module exposes three different ways to retrieve a sub-total of an order:
- Rule Condition - You can create or modify a rule on any event and add an Order Sub-total condition. It is a sub-total because you can choose what kinds of products and line items (and even specific shipping services) to include in the total. The condition can take any number in minor units ($1.00 == 100) and compare it against the sub-total you have configured.
- Rule Action - You can add an action that will return the order sub-total. A sub-total is the same as the condition and can return the full order amount while excluding any kind of product or line item or shipping service. This allows you to bring in an integer that you can use in your shipping or pricing calculations.
- Commerce Discount Condition - Using commerce_discount, you can add a condition to any number of discounts based on the order sub-total. This means you could set or reduce the price of shipping based on an order total that doesn't include digital products. Lots of other possibilities can be opened up as well.
