Menu Cart Pro Shortcode

Menu Cart Pro comes with a shortcode to let you easily add your shopping cart to any page or post. If you don’t already have Menu Cart Pro and would like to use it, you can grab a license here for only $29.

  • style=”” accepts any css styles. Ex: style=”background-color:blue;font-size:18px”
  • flyout=”” accepts ‘yes’, ‘no’, or ‘hover’ (default). ‘yes’ always displays flyout, ‘no’ never displays, and ‘hover’ displays on hover. Ex: flyout=”hover”
  • before=”” accepts any text or html and places it before the primary <li> Ex: before='<a href=”http://mylink.com”>mylink</a>’
  • after=”” accepts any text or html and places it after the primary </li> Ex: after='<span class=’span1′>this is my favorite</span>’

simple shortcode with default attributes:

[wpmenucart]

shortcode with all atts customized:

[wpmenucart style="background-color:blue;font-size:18px" flyout="hover" before='<a href="http://mylink.com">mylink</a>' after='<span class="span1">this is my favorite</span>']

As you can see simple implementation is just to add [wpmenucart] to a page or post, or you can add the custom attributes.

If you’re working directly in template files, you can also use this PHP code:

<?php echo do_shortcode('[wpmenucart]'); ?>