Ramadan Mubarak

00
Days
00
Hours
00
Minute
00
Second
> Home > docs > Developer Docs > Shortcode: storeengine_mini_cart

The StoreEngine Mini Cart shortcode allows you to display a compact, interactive cart anywhere on your website. It gives customers quick access to cart contents without leaving the current page, improving usability and checkout flow.

Shortcode

[storeengine_mini_cart]

Adding this shortcode will instantly display the StoreEngine Mini Cart on the page.

What This Shortcode Does

The StoreEngine Mini Cart shortcode displays a real-time summary of the customer’s cart in a compact layout.

Mini Cart Behavior

  • Displays products currently added to the cart
  • Shows product name, quantity, and price
  • Automatically updates when products are added or removed.
  • Provides quick access to the full cart or checkout page
  • Improves shopping flow by reducing unnecessary page navigation

Where It’s Commonly Used

The Mini Cart is designed to be placed in highly visible areas of your site for easy access.

Header or Navigation Area

Adding the Mini Cart to the header allows customers to view their cart at any time while browsing.

You can place it in sidebars, slide-out panels, or modal sections for a modern shopping experience.

Landing & Promotional Pages

Use it on sales or campaign pages so users can track their cart without leaving the page.

Frontend Output

On the frontend, the Mini Cart displays a clean, compact cart interface that updates in real time as products are added or removed.

Frontend Output

Usage Example

You can add the shortcode anywhere on your site:

[storeengine_mini_cart]

This works well on:

  • Header sections
  • Sidebar widgets
  • Cart-focused landing pages

How to Use in Gutenberg Editor

Follow these steps to add the Mini Cart using the Gutenberg editor:

  1. Open the page, template, or header where you want to display the Mini Cart.
  2. Click the ➕ (Add Block) button.
  3. Search for and insert the Shortcode block.
  4. Paste the following shortcode into the block:
    [storeengine_mini_cart]
  5. Click Update or Publish to save your changes.
shortcode storeengine_mini_cart

Once saved, the Mini Cart will appear on the frontend.


Using with aBlocks

You can also add the Mini Cart using aBlocks, without using a shortcode.

Steps to Add Using aBlocks

  1. Open your page, template, or header in the block editor.
  2. Click the ➕ (Add Block) button.
  3. Search for aBlocks.
  4. Insert the aBlocks → StoreEngine Mini Cart block.
  5. Place the block where you want the Mini Cart to appear.
  6. Click Update or Publish.

The Mini Cart will now be visible and fully functional on the frontend.

Shop bottom

Best Practices

  • Place the Mini Cart in a highly visible area, such as the header.
  • Ensure it does not overcrowd the layout on smaller screens.
  • Combine it with a Cart or Checkout button for faster conversions.
  • Test cart updates to ensure a smooth user experience.

Summary

The storeengine_mini_cart shortcode (and its aBlocks alternative) provides customers with instant access to their cart from anywhere on your site. By showing real-time cart updates in a compact format, it enhances usability, reduces friction, and helps improve conversion rates.