=== Recently Viewed Products Popup for WooCommerce ===
Contributors: martonix
Donate link: https://u24.gov.ua/
Tags: woocommerce, recently viewed, products, popup, sales
Requires at least: 5.6
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Display recently viewed products in a small, fixed, cache-friendly popup on WooCommerce pages, with a modal window to view more.

== Description ==

**Recently Viewed Products Popup** is a lightweight, cache-friendly plugin that automatically tracks and displays the products your customers have recently viewed. 
This plugin helps reduce bounce rates and encourages customers to complete their purchases by keeping their browsing history easily accessible.

= Key Features =

* **Automatic Product Tracking** - Tracks every product your customers view with no manual work required
* **Cache-Friendly Design** - Works with caching plugins and full-page cache solutions
* **JavaScript Tracking** - Smart client-side tracking ensures products are captured even with aggressive caching
* **Full History Modal** - "View All" link opens a modal with all recently viewed products in a clean, scrollable slider.
* **Slick Slider Integration** - Smooth, responsive product carousel in the modal window
* **Fixed Position Popup** - Displays few most recent products in a small, elegant popup
* **Cookie-Based Persistence** - Remembers products for up to 30 days across browser sessions
* **Flexible Display Options** - Choose exactly where to show the popup (product pages, shop, categories, cart)
* **Theme Compatible** - Uses your theme's existing WooCommerce product styling automatically

= How It Works =

1. **Automatic Tracking** - When a customer visits a product page, it's automatically added to their recently viewed list
2. **Cookie Storage** - Products are stored in a cookie that lasts 30 days
3. **Smart Display** - The popup appears only on pages you've selected in settings (product page by default)
4. **Non-Intrusive Design** - Small popup stays out of the way but remains easily accessible
5. **Modal Experience** - Clicking "View All" opens a full modal with slider navigation

== Installation ==

= Automatic Installation =
1. Log in to your WordPress admin dashboard.
2. Go to **Plugins → Add New**.
3. Search for "Recently Viewed Products Popup for WooCommerce".
4. Click **Install Now** and then **Activate**.

= Manual Installation =
1. Download the plugin ZIP file from WordPress.org.
2. Go to **Plugins → Add New → Upload Plugin**.
3. Select the downloaded ZIP and click **Install Now**.
4. After installation, click **Activate Plugin**.

Alternatively, you can extract the ZIP file and upload the folder to `/wp-content/plugins/` via FTP, then activate it from your dashboard.

= Configuration =
After activation, go to **WooCommerce → Settings → Products → Recently Viewed Products Popup** to configure the plugin settings.

== Frequently Asked Questions ==

= Can I choose where the popup appears? =
Yes. You can enable it on the Single Product page, the Shop page, Product Category pages, and the Cart page.

= How many products are shown? =
By default, 3 products are displayed in the popup and up to 15 in the modal. Both numbers are configurable in the settings.

= Does it work with block-based themes? =
Yes, the plugin is compatible with both classic and block-based themes as it uses standard WooCommerce templates.

= Does it work with my theme? =
Yes! The plugin uses mostly WooCommerce and WordPress standard templates, so it inherits your theme's styling automatically.


== Screenshots ==

1. Popup displayed on a product page.
2. Modal window with all recently viewed products and slider navigation.
3. Plugin settings page.
4. Popup shown in the bottom-left corner.
5. Popup on a mobile screen.

== Changelog ==

= 1.1.0 =
* Added "All Pages" display option to show popup on all pages

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release of Recently Viewed Products Popup for WooCommerce.