=== DSS Cart Price Sync ===
Contributors: dss
Tags: woocommerce, cart, tax, ajax, mini-cart
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Keeps the header cart amount, cart badge, and mini-cart popup subtotal in sync and updated in real time.

== Description ==

Fixes a mismatch where the header cart amount was calculated excluding tax
while the mini-cart popup subtotal was calculated including tax (or vice
versa), so the two figures could disagree.

This plugin:

* Makes both figures read from the same WooCommerce core calculation
  (`WC_Cart::get_displayed_subtotal()`), so they can never disagree again
  and automatically follow whatever WooCommerce > Settings > Tax >
  "Display prices during cart and checkout" is set to.
* Refreshes the header amount, cart badge, and popup subtotal in real
  time whenever the cart changes (add to cart, remove from cart), with no
  page reload required.
* Works as a self-contained plugin. It does not edit, override, or
  depend on any theme template file, and will not fatal-error if
  WooCommerce is missing or inactive.

== Installation ==

1. Upload the `dss-cart-price-sync` folder to `/wp-content/plugins/`, or
   upload the zip via Plugins > Add New > Upload Plugin.
2. Activate the plugin through the "Plugins" screen.
3. No configuration needed. If your theme has a second (e.g. mobile)
   cart item-count badge with a different CSS class, add it to the
   `BADGE_TARGETS` array at the top of
   `includes/class-dss-cart-price-sync.php` — see the commented example
   already in that file.

== Changelog ==

= 1.0.0 =
* Initial release.
