The Shopping Cart mode comes with three different shortcodes:
- [cart_button] – displays shopping cart button which shows the number of products in cart or a cart restore text if any cart is available for restoration
- [shopping_cart] – displays current cart contents and the buttons to proceed or go back to product listing
- [cart_submit_form] – displays order summary and checkout form
Display Cart in website menu or header
An easy way to add the cart icon to the menu is to use the catalog sitewide icons. See the Cart Icon in Main Menu to proceed.
To display the cart in your theme header, please add the following code to your theme header.php file:
<?php echo do_shortcode('[cart_button]') ?>
You can place it where you want the cart to be displayed.