I have a requirement to add an amount to the total of all Commerce product lines items in a users cart and then add that amount to the shipping amount.

The rule I currently have uses the "calculating a shipping rate" event. The element on the rule uses "Calculate a value" with the input value as commerce-line-item:order:commerce-order-total:amount. However, this value also takes into account the shipping. I only want to apply the calculation to the ordered items in the cart - not shipping as well.

Does anyone know how I can access just the subtotal for the cart?


1 Answer 1


Using [site:current-cart-order:commerce-order-total:amount] seems to do the trick.

  • You're encouraged to answer your own question on Drupal Answers. If this is how you solved the problem, mark it as the accepted answer for future user.
    – Shawn Conn
    May 28, 2015 at 20:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.