=== SPP Side Cart for WooCommerce ===
Contributors: simpliplugin
Tags: woocommerce, side cart, mini cart, ajax cart, slide cart
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A sliding side cart (mini-cart) that opens from the left or right, letting customers view and edit their cart without page reloads.

== Description ==

SPP Side Cart adds a modern, sliding mini-cart to your WooCommerce store. When a customer adds a product or clicks the cart, a drawer slides in from the left or right of the screen. They can update quantities, remove items and head to checkout — all without a single page reload.

**Key features**

* Slide-in cart drawer from the **left or right**.
* **No page reloads** — add, update quantity and remove items over AJAX.
* Live totals and cart count powered by native WooCommerce fragments.
* Optional **floating cart button** with an item-count badge (bag / cart / basket icons).
* Optionally **hijack theme cart links** to open the drawer instead of the cart page.
* Optional **free-shipping progress bar** to increase average order value.
* Customizable colors and drawer width — no coding required.
* Fully responsive, keyboard accessible (Esc to close, focus management) and translation-ready.
* Compatible with WooCommerce **High-Performance Order Storage (HPOS)**.

== Installation ==

1. Upload the `spp-side-cart` folder to the `/wp-content/plugins/` directory, or install it through the Plugins screen in WordPress.
2. Activate the plugin through the **Plugins** screen.
3. Make sure WooCommerce is installed and active.
4. Go to **WooCommerce → Side Cart** to configure position, colors and behaviour.

== Frequently Asked Questions ==

= Does this require WooCommerce? =

Yes. The plugin extends WooCommerce and will show a notice if WooCommerce is not active.

= Can I open the cart from my own button? =

Yes. Call `window.sppSideCartApi.open()` from any click handler, or add the class `spp-cart-toggle` to a button.

= Does it work with page caching? =

Yes. Cart contents load over AJAX and use WooCommerce cart fragments, so cached pages still show the correct cart.

= Can I change the side it slides from? =

Yes, choose left or right under **WooCommerce → Side Cart**.

== Screenshots ==

1. The side cart drawer sliding in from the right.
2. Free-shipping progress bar and line items.
3. The settings screen.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
