WP Manifestindependent plugin directory
manifest / ecommerce / wpcalibrate-smart-cart-drawer

WPCalibrate Smart Cart Drawer

A fast, accessible, customizable slide-out mini-cart drawer for WooCommerce with live updates, quantity controls, coupons, shipping progress, and cross-sells.

★ 0stars
v1.0.0latest · 1mo ago

Install

Download wpcalibrate-smart-cart-drawer-1.0.0.zip From the v1.0.0 release on GitHub, Oct 21, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/zeeshanraza-official/wpcalibrate-smart-cart-drawer/releases/download/v1.0.0/wpcalibrate-smart-cart-drawer-1.0.0.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A fast, accessible, customizable slide-out mini-cart drawer for WooCommerce with instant AJAX live updates, tactile quantity steppers, free shipping goal progress, coupon management, and cross-sell recommendations.


About

WPCalibrate Smart Cart Drawer replaces clunky default WooCommerce cart redirects with a frictionless, high-converting slide-out cart drawer. Built with modern eCommerce performance best practices, it provides a seamless shopping experience on both mobile and desktop while preserving WooCommerce core as the single authoritative source of truth for pricing, stock, taxes, and discounts.

Key Highlights

  • High-Converting UX: Keep shoppers on product pages instead of redirecting away, reducing cart abandonment.
  • Universal Theme Isolation: Strict scoped CSS reset ensures buttons, steppers, and inputs look sleek and modern regardless of the active WordPress theme.
  • Authoritative Calculations: All cart operations (item additions, quantity steppers, coupons, shipping progress) compute strictly through WooCommerce core calculation APIs.
  • Enterprise Accessibility (WCAG 2.2 AA): Modal dialog semantics, focus trapping, escape key dismiss, ARIA live region announcements, and full keyboard navigability.
  • Modern Stack: PHP 8.2+ strict typing, vanilla ES6 JavaScript (zero jQuery dependencies on the frontend), and logical CSS properties for complete RTL compatibility.

Features

Slide-Out Drawer Shell

  • Configurable side positioning (Right or Left slide-in).
  • Smooth cubic-bezier slide transitions with backdrop blur overlay.
  • Mobile full-width drawer mode with optimized touch interactions.
  • Sticky header and sticky checkout footer controls.

Free Shipping Milestone Goal Bar

  • Visual dynamic progress bar calculating remaining cart subtotal toward free shipping threshold.
  • Auto-detects active WooCommerce free shipping rates or supports custom admin goal amounts.
  • Celebratory unlocked state with celebratory icon and custom reward messaging.

Interactive Cart Item Controls

  • Tactile Quantity Stepper: Smooth unified pill stepper with instant live debounce updates.
  • Direct Quantity Input: Optional numeric input with automatic bounds clamping.
  • Circular Ghost Trash Button: Discrete top-right item removal with instant undo notification banner.
  • Product Details: High-resolution thumbnail, product title link, SKU, and variation pills.

Seamless Coupon Management

  • Integrated inline coupon form with discount tag icon.
  • Applied coupon tags displaying live discount amount and one-click removal button.
  • Dynamic error handling with instant validation notices.

Cross-Sell & Upsell Engine

  • Displays relevant product recommendations directly inside the drawer.
  • Automatic retrieval based on cart contents or designated category rules.
  • Instant "Add to Cart" button without page reload.

Flexible Trigger Options

  • Floating Cart Button: Floating pill or circular FAB with live item counter badge and subtotal display.
  • Shortcode: [wpcalibrate_smart_cart show_count="true" show_subtotal="true"] for header, menu, or page placement.
  • Gutenberg Block: Native "Cart Drawer Trigger" block with inspector controls.

Installation

From WordPress Admin

  1. Download the latest wpcalibrate-smart-cart-drawer-1.0.0.zip release from the Releases tab.
  2. In your WordPress dashboard, navigate to Plugins > Add New > Upload Plugin.
  3. Select the downloaded ZIP file and click Install Now.
  4. Click Activate Plugin.

Manual Installation (FTP / SSH)

  1. Extract the release ZIP.
  2. Upload the wpcalibrate-smart-cart-drawer directory into your server's /wp-content/plugins/ directory.
  3. Activate the plugin via Plugins in the WordPress admin panel.

Documentation & Usage

1. Settings Dashboard

Navigate to WPCalibrate > Smart Cart Drawer in your WordPress admin menu:

  • Overview: Purpose, quick start guide, and system information.
  • General: Enable/disable drawer, drawer side (left/right), sticky header, sticky footer, overlay blur.
  • Shipping Goal: Enable progress bar, define free shipping target, and customize milestone messages.
  • Cart Items: Toggle thumbnails, SKUs, variation attributes, quantity steppers, and direct input.
  • Coupons: Enable coupon form, placeholder text, and button label.
  • Recommendations: Configure cross-sells source, limit, and ordering.
  • Style & Colors: Customize primary color, button colors, drawer width, and font family.
  • Triggers: Configure floating button position (bottom-right, bottom-left, top-right, top-left), badges, and subtotal.

2. Shortcode Usage

Place the trigger button anywhere in pages, widgets, or theme templates:

[wpcalibrate_smart_cart]

Supported Shortcode Attributes

Attribute Type Default Description
class string "" Extra CSS classes to append
show_count bool true Show or hide the circular counter badge
show_subtotal bool false Display live cart subtotal next to the button
aria_label string "Open cart drawer" Custom accessibility label

Example:

[wpcalibrate_smart_cart show_count="true" show_subtotal="true" class="my-custom-header-cart"]

3. Gutenberg Block

In the WordPress Block Editor (Gutenberg or Full Site Editing):

  1. Insert the WPCalibrate Cart Trigger block.
  2. Use the block sidebar to toggle item count, subtotal, and custom styling.

4. Developer Hooks & Filters

Extend or customize cart drawer behavior with native WordPress hooks:

// Conditionally bypass cart drawer loading on specific templates
add_filter( 'wpcalibrate_scd_should_load', function( $should_load ) {
    if ( is_page( 'landing-page' ) ) {
        return false;
    }
    return $should_load;
} );

// Customize cart state payload before sending to client
add_filter( 'wpcalibrate_scd_cart_state', function( $state ) {
    $state['custom_badge'] = 'Sale';
    return $state;
} );

Technical Specifications

  • WordPress Requirement: 6.4 or higher
  • WooCommerce Requirement: 8.5 or higher (tested up to 11.2.1)
  • PHP Version: 8.2 or higher (strict_types=1 across all files)
  • Database Engine: Uses native WordPress options (wpcalibrate_scd_settings), no bloat tables created.
  • WooCommerce HPOS: Declared compatible via FeaturesUtil::declare_compatibility.
  • Cart & Checkout Blocks: Compatible with both classic and block-based checkout.
  • Security: Strict nonce verification, capability checks (manage_woocommerce), input sanitization, and output escaping via wp_kses_post / esc_html.

Changelog

1.0.2 - 2026-10-21

  • Fixed: Active theme CSS leakage on drawer buttons (quantity steppers, close buttons, coupon apply, and trigger buttons now use strict universal CSS reset).
  • Changed: Complete modern frontend redesign with sleek pill steppers, ghost trash removal icons, and primary gradient checkout CTA.
  • Added: Added license.txt (GNU General Public License v2).

1.0.1 - 2026-10-21

  • Fixed: Admin menu logo size constrained to 20x20px with white logo display matching standard WordPress dashboard icons.
  • Added: Added comprehensive "Overview" documentation tab in admin settings page.

1.0.0 - 2026-10-21

  • Initial Release: Complete slide-out mini-cart drawer with AJAX live updates, free shipping progress, coupons, and cross-sells.

License

This project is licensed under the terms of the GNU General Public License v2.0 or later (GPL-2.0-or-later). See license.txt for the full license text.


Support & Author

Releases

1 release. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.0.0 latest
Oct 21, 2026 1mo ago
wpcalibrate-smart-cart-drawer-1.0.0.zip
0