Kartly Sidecart for WooCommerce

By Kazi Mahmud Al Azad

★ 5.0/5 (2 ratings)0+ active installationsVersion 2.0.0

A fast, modern side cart for WooCommerce. Change quantities, remove items, apply coupons and see suggested products without leaving the page.

Description

Kartly Sidecart adds a slide-out cart drawer to your WooCommerce store. It is built with React and the official WooCommerce Store API, so it works with classic themes, block themes and the Cart & Checkout blocks.

Features

  • Slide-out cart that opens automatically when a product is added (optional)
  • Change quantities and remove items instantly, with no page reload
  • Coupon field: apply and remove coupons inside the cart
  • Suggested products (“You may also like”) using your WooCommerce cross-sells, with one-click add
  • Floating cart button with a live item count, in any corner
  • [kartly_cart_button] shortcode to place a cart button anywhere, such as your header or menu
  • Open the cart from any link or button with the kartly-open-cart class or a link to #kartly-cart
  • Settings page with a live preview: colors, icons, texts, button styles, width, side and rounded corners
  • 6 cart icons and 6 remove icons to choose from
  • Accessible: keyboard friendly, focus trap, Escape to close, screen-reader announcements
  • Respects your store’s tax display, currency format, quantity limits and product variations
  • Compatible with High-Performance Order Storage (HPOS) and the Cart/Checkout blocks
  • Translation ready, with RTL support

Development

The JavaScript source is in the src folder. To build it, run npm install and then npm run build.

Installation

  1. Upload the kartly-sidecart-for-woocommerce folder to /wp-content/plugins/, or install the plugin from Plugins → Add New.
  2. Activate the plugin. WooCommerce must be active.
  3. Go to Kartly in the admin menu to customize the cart. The preview updates as you change settings.

FAQ

Does it work with my theme?

Kartly works with classic and block themes. It uses the WooCommerce Store API instead of theme templates, so it should look the same on every theme.

How do I show a cart button in my header?

Add the [kartly_cart_button] shortcode to a Shortcode block or widget in your header. You can also add the CSS class kartly-open-cart to any menu item or button.

Where do the suggested products come from?

From the Cross-sells field on each product (Product data → Linked Products).

I’m upgrading from version 1.x. Will I lose my settings?

No. Your colors, icons and title are moved to the new settings automatically. The old [ws-cart-button] shortcode keeps working.

Screenshots

Changelog

2.0.0

  • Rebuilt from scratch with React and the WooCommerce Store API.
  • New: settings page with live preview and Save/Discard/Reset.
  • New: working coupon field, suggested products (cross-sells), floating button positions, left or right drawer, adjustable width.
  • New: keyboard support, focus trap and screen-reader announcements.
  • New: HPOS and Cart/Checkout blocks compatibility.
  • New: [kartly_cart_button] shortcode ([ws-cart-button] still works).
  • Fix: removing a product removed the wrong variation when several variations were in the cart.
  • Fix: line totals now respect your tax display setting.
  • Fix: default settings are applied on a fresh install.
  • Security: settings are saved through the WordPress REST API with capability checks and strict validation.
  • Cleanup: the unused kartly_cart_data database table is removed, and all text is translatable.

1.0.2

  • Minor fixes and compatibility improvements.

1.0.1

  • Minor fixes and compatibility improvements.

1.0.0

  • Initial release.