Website Building » WooCommerce » How Do I Add a View Cart Button in WooCommerce?

How Do I Add a View Cart Button in WooCommerce?

Last updated on October 2, 2022 @ 12:51 am

Adding a View Cart button in WooCommerce is easy! You can add a button to any page or post using a shortcode, or you can use a widget to display the button in your sidebar. Either way, the button will link to the cart page where customers can see the items they’ve added to their cart.

To add a View Cart button using a shortcode, simply add the following code to any page or post:

[woocommerce_cart]

This will output a button that says “View Cart” and links to the cart page. If you want to customize the text of the button, you can use this shortcode:

[woocommerce_cart]View Cart[/woocommerce_cart]

Just replace “View Cart” with your own text. You can also use HTML in this shortcode, so if you want to make the button bold or underlined, you can do so like this:

PRO TIP: The following article provides instructions on how to add a View Cart button in WooCommerce. However, it is important to note that this button will only be visible to logged in users. If you are not logged in, the button will not be visible.
[woocommerce_cart]View Cart[/woocommerce_cart] [woocommerce_cart]View Cart[/woocommerce_cart]

You can also add a View Cart button to your sidebar using a widget. WooCommerce comes with a “Cart” widget that you can add to any sidebar. Once you’ve added the widget, you’ll be able to customize the text of the button.

So there you have it! Two easy ways to add a View Cart button in WooCommerce.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.