Cart shortcode

The Prodigy Cart shortcode displays either a persistent or dropdown shopping cart.  The dropdown version of the shortcode is demonstrated in the header when our demo content is installed.

sc-cart-persistent.png

 

Example Usage

Show the persistent cart.

[prodigy_cart_widget]

Available Attributes

dropdown

Determines if the cart is shown persistently or as a dropdown.  Acceptable values are:  true, false.  The default value is false.

[prodigy_cart_widget dropdown="true"]

When dropdown is set to true, the shortcode initially displays a cart icon as shown below.

sc-cart-icon.png

When the icon is clicked, the dropdown cart appears as shown below.

sc-cart-dropdown.png

Template Override

The template used by this shortcode can be overridden by copying the template into your theme or child theme and then editing.

Copy from:

prodigy-commerce/templates/partials/shortcode/cart.php

Copy to:

<your-theme>/prodigy/shortcode/cart.php

 

Build WordPress stores with modern technology

Sign up to use the Prodigy platform, a powerful alternative to WooCommerce. Prodigy is free at ANY scale.

Create an Account