Documentation / Plugins / WooCommerce / Codex / Snippets / Theming Snippets If you have spotted incorrect or outdated information in this doc, please send us the details using the form below. If you need support for one of our products please visit our Help Desk and submit a ticket. Your email address What's up with our docs? Show cart contents / total To display the cart contents and total in your template use something like: View the code on Gist. To ajaxify your cart viewer so it updates when an item is added (via ajax) use: View the code on Gist.