Skip Navigation

[Resolved] WooCommerce Shortcode For Cart Items and Cart Total Amount

This support ticket is created 5 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 5 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1365413

Tell us what you are trying to do?

I need a shortcode that i can display anywhere in the Toolset Layouts the Total Card items and the Card amount next to the cart icon.

#1365481

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Have you checked the shortcode - [wpv-woo-cart-count]
=> https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-woo-cart-count

To display the cart total, I suggest you should build a custom shortcode that should return the cart total. Please check the following link that will help you:
=> hidden link

#1365487

Thx first Shortcode ist not what i search.

Second is what i search but breaks the page if i put it into functions.php

#1365497

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Actually - there is no native way Toolset offer to display the cart total. I suggest you should check with WooCommerce support or find it by googling it.

Even I do not know how you added the code to your functions.php file - so I strongly suggest you to check with WooCommerce Doc and support.