How to show cart contents / total Woocommerce

You can Display the Cart contents and total in any of your template file. We mainly use in header.php file to show the cart.

Below is the code to display the icon:

With Ajax

// Ensure cart contents update when products are added to the cart via AJAX (place the following in functions.php)

Visit us at Developergang to submit guest post related Technology + Write For Us + Guest Post