0

I would like to create a block that shows the current user's order totals including all components, as follows:

 - Subtotal
 - Discount or coupon
 - Sales tax
 - Total

I would be happy with a block that simply renders the footer of the shopping cart view. I've played around with commerce-line-item-summary.tpl.php, but it only renders the number of items in the cart and the total amount. It doesn't have to be a form, just a summary of the shopping cart totals.

I would like to show this block during the checkout process in a sidebar region.

Any ideas how to create this?

  • Which e-commerce module are you using? – Felix Eve Apr 28 '14 at 11:22
  • Commerce has a "Commerce Order: Order total" component that can be used in Views- it does exactly what you're looking for – Clive Apr 28 '14 at 11:24
  • Drupal Commerce Kickstart – Tinto Apr 28 '14 at 11:25
  • Thank you @Clive - that was exactly what I was looking for. Unbelievable how I completely overlooked that solution when it was right in front of me! :) – Tinto Apr 28 '14 at 13:04
  • @Tinto I spent about half an hour looking for the same thing last week ;) – Clive Apr 28 '14 at 13:05
1

Quoting @Clive from the comments above:

Commerce has a "Commerce Order: Order total" component that can be used in Views- it does exactly what you're looking for.

Thank you!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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