Website Building » WooCommerce » How Do I Display My WooCommerce Cart?

How Do I Display My WooCommerce Cart?

Last updated on October 1, 2022 @ 12:59 pm

You can display your WooCommerce cart in several ways. The most popular is to use the [woocommerce_cart] shortcode. This shortcode will output the cart contents and a link to the checkout page.

You can also use the [woocommerce_checkout] shortcode to output the checkout form on a separate page.

If you want to get really fancy, you can use the [woocommerce_order_tracking] shortcode to output an order tracking form on your site.

All of these shortcodes can be used in your theme’s template files by using the do_shortcode() function.

The most common way to display the WooCommerce cart is to use the WooCommerce_cart() shortcode. This shortcode will output the cart contents and a link to the checkout page:

[woocommerce_cart]

You can also use the WooCommerce_checkout() shortcode to output the checkout form on a separate page:

PRO TIP: If you are using WooCommerce to sell products on your WordPress site, you may have noticed that there is no “Cart” page automatically generated by WooCommerce. This can be confusing for new users, as they wonder how they are supposed to display their shopping cart to their visitors.

The good news is that it is relatively easy to create a “Cart” page in WooCommerce. In this article, we will show you how to do it.

[woocommerce_checkout]

If you want to get really fancy, you can use the WooCommerce_order_tracking() shortcode to output an order tracking form on your site:

[woocommerce_order_tracking]

All of these shortcodes can be used in your theme’s template files by using the do_shortcode() function.

Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.