Display order total in cart block

Created on 2 July 2018, over 6 years ago
Updated 13 September 2024, 3 months ago

Hello,

I'm tring to display the order total to the cart block.

I know drupal commerce 1.x quite well and I used to work with the view footer, adding an order total summary to the cart block.

I looked that the code and I fell to commerce-cart-block.html.twig with the {{ content }} variable to display the shopping cart detail.

It seems that this {{ content }} variable only load the view content. When I add the order total footer to my view, it's just not printed (even after several cache clear).

I don't know drupal 8 and commerce 2 code quite well actually, but I conclude that the {{ content }} variable probably load just the view fields or body, and not the whole view object with the footer.

Can somebody more experienced confirm the issue ?

Thanks

Alexandre

💬 Support request
Status

Active

Version

2.0

Component

Cart

Created by

🇫🇷France Alexandre360

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024