Shopping Cart Shortcodes

Shopping Cart extension comes with 3 different shortcodes:

  1. [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
  2. [shopping_cart] – displays current cart contents and the buttons to proceed or go back to product listing
  3. [cart_submit_form] – displays order summary and checkout form

Display Cart in website menu or header

In order 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.