Back to Documentation

Menu Cart Shortcode

Add a Menu Cart anywhere on your site using the cart shortcode


You can now add a cart item anywhere you like too, using the Menu Cart shortcode.

Cart Shortcode:

[wcz_menu_cart]

This shortcode will display a simple cart which will link your users to the cart page. You can also have a mini drop down cart display with it too.

The cart display takes on the designs from the Customizer -> StoreCustomizer -> Menu Cart settings, and this shortcode accepts only 2 attributes… They are:

args:

minicart='true'

This attribute only accepts the word “true”, and will add a mini drop down cart to your cart item.

If not set, then the mini drop down cart will NOT show

example:

align='right'

This attribute only accepts the word “left” or “right”, and it will align the mini drop down cart to your cart item.

If not set, then the mini drop down cart will stay LEFT aligned

example: