Skip Navigation

[Gelöst] WooCommerce Shortcode For Cart Items and Cart Total Amount

This support ticket is created vor 5 Jahren, 1 Monat. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 5 Jahren, 1 Monat.

Assistiert von: Minesh.

Author
Artikel
#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

Sprachen: Englisch (English )

Zeitzone: 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:
=> versteckter 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

Sprachen: Englisch (English )

Zeitzone: 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.