1. Home
  2. Docs
  3. WCOP – WHMCS Cart & Order Pages
  4. Shortcodes
  5. Cart Summary Shortcode

Cart Summary Shortcode

Most of the themes offer widget area’s in top-bar if that is the case you can simply place the following shortcode in the top-bar/header widget area.

whcom_op_cart_summary

In case your theme does not offer a widget area where you want to display cart summary, Or you will need to edit your theme file (usually header.php) and insert one of the following codes in it an appropriate place.

<?php echo do_shortcode("whcom_op_cart_summary"); ?>

Parameters:

  • type
    • dropdown: If you want to show cart in theme header in dropdown format.
    • button: If you want to show cart in theme header in button format.

 

Was this article helpful to you? Yes No