=== StateSwitch ===
Contributors: masaribconnect
Tags: woocommerce, product images, accessibility
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 7.1
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Switch compatible WooCommerce product imagery and optional storefront atmosphere between two merchant-defined states.

== Description ==

StateSwitch adds a simple two-state visual switch to compatible WooCommerce products.

Create an alternate product state and let visitors switch between the standard product view and a second merchant-defined visual state directly on the storefront.

StateSwitch can be used for many kinds of visual comparisons, including:

* Alternate product views
* Before and after presentations
* Open and closed states
* Day and night views
* Lighting changes
* Different product configurations
* Other two-state product presentations

StateSwitch is designed to work inside your existing WooCommerce store without sending product or visitor data to an external service.

Features include:

* Two merchant-defined visual states
* Alternate product image support
* Storefront state switch
* Configurable StateSwitch settings
* Optional visitor state memory
* WooCommerce integration
* No telemetry or analytics
* No remote API dependency
* No external fonts

StateSwitch requires WooCommerce.

== Installation ==

1. Upload and activate StateSwitch.
2. Ensure WooCommerce is active.
3. Open WooCommerce > StateSwitch to configure the plugin.
4. Add an alternate State B image to compatible products.
5. View the product on the storefront and use the StateSwitch control to switch between states.

== Screenshots ==

1. StateSwitch global settings for configuring the default state, visitor state memory, transition behaviour, and uninstall data preference.
2. StateSwitch toggle and placement settings, including custom State A and State B labels, toggle style, size, display mode, and automatic placement.
3. StateSwitch integration in the WooCommerce product editor, where StateSwitch can be enabled and an alternate State B image selected for an individual product.
4. StateSwitch in action, demonstrating how customers can switch between two merchant-defined product states on the storefront.

== FAQ ==

= Does StateSwitch require WooCommerce? =

Yes. StateSwitch is designed specifically for WooCommerce products.

= Does it delete data on deactivation? =

No. A separate opt-in setting controls removal only during uninstall.

= Does StateSwitch send product or visitor data to an external service? =

No. StateSwitch stores its settings and product metadata inside WordPress and does not use a remote StateSwitch API.

== Privacy ==

StateSwitch processes settings and product metadata only inside WordPress. It does not send data to external services.

When "Remember Visitor State" is enabled, StateSwitch stores the selected state (`a` or `b`) in the visitor's browser local storage. This contains no personal data and is not transmitted to StateSwitch or any external service.

== Changelog ==

= 1.0.0 =
Initial public release.