NINJA Mini Cart
Add a slide-out AJAX mini cart and a header cart icon with live count, so shoppers review and edit their cart without leaving the page.
- Auto-open on add — optionally open the drawer automatically when a shopper adds an item, so they see the cart without leaving the page.
- [ninja_mini_cart] shortcode — drop the cart icon + live badge anywhere: a custom header, a widget area, a navigation menu, or a block editor section.
- Hide badge when empty — optionally suppress the badge until at least one item is in the cart, keeping headers clean for new visitors.
- Accessible — drawer is a proper role="dialog" with aria-modal, aria-label, focus management on open, focus trap, and ESC-to-close.
- Zero dependencies — uses WooCommerce's native fragment system; no external libraries beyond jQuery (already loaded by WooCommerce).
What it does
NINJA Mini Cart adds a sliding cart drawer that opens when an item is added, showing line items, quantities, subtotal and checkout buttons — all updated over AJAX without a page reload. A header cart icon with a live item count and a floating toggle keep the cart one tap away, lowering abandonment. Includes a [ninja_mini_cart] icon shortcode for any theme.
Self-contained and free — built in the ninja.si plugin workshop. Need a tailored variant? Open a brief via /request.
Open a ticket and we'll scope the change. We add features, swap providers, or branch the plugin entirely if you need something close-but-not-quite.