# storeengine/2.2.0/includes/shortcode/mini-cart.php

StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates &amp; More, version 2.2.0. 28 lines.

- Page: https://pluginprobe.com/plugins/storeengine/2.2.0/code/includes/shortcode/mini-cart.php
- Raw: https://pluginprobe.com/plugins/storeengine/2.2.0/raw/includes/shortcode/mini-cart.php
- Modified: 2026-04-20T13:58:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/storeengine/2.2.0/code/includes/shortcode/mini-cart.php#L10-L20`.

```php
<?php

namespace StoreEngine\Shortcode;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

use StoreEngine\Utils\Formatting;
use StoreEngine\Utils\Helper;
use StoreEngine\Utils\Template;

class MiniCart {

	public function __construct() {
		add_shortcode( 'storeengine_mini_cart', array( $this, 'render' ) );
	}

	public function render( $atts ) {
		do_action( 'storeengine/cart/check_items' );

		return Template::get_template_content( 'shortcode/mini-cart.php', [
			'item_count' => Helper::cart()->get_count(),
			'cart_url'   => Helper::get_page_permalink( 'cart_page' ),
		] );
	}
}

```
