=== Caddy Pro ===
Author: Tribe Interactive, LLC
Author URI: https://www.usecaddy.com
Contributors: tribeinteractive, mvalera
Tags: caddy pro, side cart, cart, woocommerce, sticky cart
Donate link: https://www.usecaddy.com
Requires at least: 6.5
Tested up to: 6.9.1
Requires PHP: 7.4
Stable tag: 3.0.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Enhanced mini-cart drawer for WooCommerce with upselling/cross-selling, free shipping meter and save for later list.

== Description ==

Caddy improves the shopping experience on your WooCommerce store by providing a fast and seamless shopping cart sidebar available on any page in your store. Increase average order sizes with Caddy's built-in product recommendations, reduce cart abandonment with a free shipping meter, and encourage repeat shoppers with a saved product list.

= Supported Languages =

Caddy Pro is translated into the following languages:

* English (default)
* German (Deutsch)
* French (Français)
* Italian (Italiano)
* Brazilian Portuguese (Português do Brasil)
* Spanish (Español)

== Installation ==

Important: You must download and activate the WooCommerce plugin, before using Caddy.

= Install Caddy Pro from within WordPress =
1. Download the Caddy free & pro plugins from usecaddy.com.
2. Go to your WordPress admin > plugins page > add new page. Click the upload button.
3. Upload and activate each plugin one at a time, starting with the free version.
4. Find the "Caddy" link in the left navigation bar. Click the Caddy > Licenses page.
5. Enter your Caddy Pro license that you received in your email after you ordered Caddy.
6. Click the save settings button, then click the activate button

== Changelog ==

= 3.0.3 =
* Fix: Resolve early script/style registration warnings on WordPress 6.5+ by deferring block registration to the init hook.

= 3.0.2 =
* Fix: Cart item prices now remain tax-inclusive after quantity changes when WooCommerce is set to display prices including tax.
* Fix: Prices now display correctly for currencies with non-standard decimal settings (e.g. INR with 0 decimals, JPY). Previously all Store API prices were hardcoded to divide by 100.
* Fix: Cart item shortcode (`[cc_cart_items]`) is now clickable regardless of whether Save for Later is active.
* Fix: Shop page add-to-cart buttons no longer replace theme icons/markup with text, preventing layout shifts and preserving theme styling (e.g. WoodMart, Flatsome).
* Fix: Caddy Recommendations field now appears on the WooCommerce product edit screen under Linked Products.
* Fix: Admin notice dismiss buttons (welcome notice, opt-in notice) now work correctly.
* Fix: Caddy Recommendations now display correctly for variable products (previously looked up variation ID instead of parent product).
* Fix: Customizer color picker options now display correctly on themes that override default styles (e.g. Divi).

= 3.0.1 =
* Fix: Standardized cart/recommendation image handling to use WooCommerce thumbnail URLs directly and resolved broken/oversized image edge cases.
* Fix: Recommendation results now refresh from current cart state on drawer open to prevent stale/fallback mismatches after add-to-cart.
* Fix: Cart totals now consistently respect WooCommerce tax display mode (`Including tax` / `Excluding tax`) and currency formatting settings, including `woocommerce_price_trim_zeros` and variation-price updates.
* Fix: Recommendation titles now decode HTML entities correctly (including double-encoded content), and cart variation text now shows clean value-only output.
* Fix: Confetti script now reliably enqueues on block pages when enabled.
* Fix: Resolved WooCommerce Product Bundles edge cases for bundled item removal, aggregate pricing persistence, and variable-quantity control behavior.
* Improvement: Restored and expanded translation reliability across runtime textdomain loading, shared `caddy` strings, short-locale mapping, missing keys, CTA strings, and Interactivity-driven UI strings.
* Improvement: Hardened bundled quantity controls with layered safeguards (UI, Interactivity directives, and JS action guards).
* Feature: Added an optional "Delete all data on uninstall" setting with full cleanup of plugin tables, options, transients, user meta, and scheduled actions.

= 3.0.0 =
* MAJOR: Complete rewrite using the WordPress Interactivity API for reactive, instant cart updates
* MAJOR: All cart operations now use the WooCommerce Store API — no legacy AJAX
* MAJOR: Removed jQuery dependency — pure ES modules for a dramatically smaller footprint
* MAJOR: Cart displays instantly on page load with server-rendered initial state (no loading delay)
* Feature: Workflow automation engine — trigger targeted product recommendations, popup notifications, and auto-apply coupons based on cart contents, cart total, product categories, page, and customer role
* Feature: Multi-tier rewards meter with free shipping, free gifts, and discount rewards
* Feature: In-cart announcement bar with dynamic variables and rich text
* Feature: Cart tracking and analytics dashboard with conversion tracking
* Feature: Welcome message for new users
* Feature: Offers tab with promotable coupon offers
* Improvement: Faster and more reliable save for later feature
* Improvement: Replaced Slick Slider & Tabby JavaScript libraries with lightweight implementations
* Improvement: Better compatibility with checkout plugins and themes
* Improvement: WooCommerce Subscriptions All Products integration
* Improvement: Enhanced WP Customizer integration for visual styling
* Performance: Optimized code for better overall site performance

= 2.1.4 =
* Improvement: Major product recommendations performance optimization (60-90% faster loading)
* Improvement: Added intelligent caching system for recommendations with cart-aware invalidation
* Improvement: Improved variation product loading performance (limited to essential data only)
* Improvement: Added request timeouts and better error handling for recommendation AJAX calls
* Improvement: Cart tracking improvements
* Improvement: Updated coupon selection logic in the offers screen
* Improvement: Refactored notification logic and condensed into a single class
* Improvement: Security & performance improvements
* Feature: Allowing dynamic variables & enhanced text editor in announcement text
* Feature: Added admin tools page with various cleanup tools
* Fix: Enhanced disabled button exclusion for add-to-cart actions
* Fix: Remove merging logic for variables setup as "any" 
* Fix: Rewards bar settings payload issue
* Fix: Announcement bar display issue
* Fix: Refactored search logic in Caddy_Premium_Utils for products, product cats & coupons
* Fix: Dashboard data loading and date range calculation issues
* Fix: Refactored rewards meter display logic
* Fix: Notifications display mode not triggering
* Fix: Save for later button not appearing on product pages

= 2.1.3 =
* Fix: Coupon search on offer settings page
* Improvement: Remove shipping option override when free shipping calculation is met

= 2.1.2 =
* Improvement: Major performance improvements
* Improvement: JS reorganization and cleanup
* Improvement: Refactor recommendations class for performance
* Improvement: Improved cart tracking performance
* Improvement: Better workflow matching for categories (and sub categories)
* Fix: Missing discount pricing on wcs-att upgrade button & select options

= 2.1.1 =
* Fix: Resolved memory exhaustion issues during checkout when applying coupons

= 2.1.0 =
* Fix: Registation link in the welcome message
* Fix: Admin dashboard stats
* Fix: Bug on variable products button on shop pages
* Fix: Adding missing js .map files
* Improvement: Redesigned the admin dashboard
* Improvement: Bot blocking for carts tracking
* Improvement: Improved refresh of cart contents on drawer open
* Improvement: Coupon application logic for workflows
* Feature: Cart announcement bar
* Feature: Cart multi-tier rewards meter
* Feature: In-cart subscription upgrades via All Products for WooCommerce Subscriptions Extension
* Feature: Ability to specify number of recommendations to show

= 2.0.2 =
* Improvement: Improved guest to registered user - carts tracking
* Improvement: Improved abandoned cart reactivation - carts tracking
* Fix: Added version numbers to scripts to prevent caching issues
* Fix: Pulling unnecessary DB calls from the settings page
* Fix: Open cart request from customizer
* Fix: Duplicate cart item issue for ATC triggered workflows
* Fix: Free shipping meter exclusions

= 2.0.1 =
* Improvement: Added "Boosted" column in the admin carts table
* Improvement: Added "Captured at" and "Time to Capture" times in the admin carts popup
* Improvement: Added sorting to dashboard tables
* Fix: Optimized dashboard "Most abandoned Products" query for performance & compatibility
* Fix: Conversions tracking issues

= 2.0.0 =
* Feature: Conversion tracking
* Feature: Cart tracking
* Feature: Workflows
* Feature: Analytics dashboard
* Feature: Confetti celebration on free shipping meter
* Improvement: Added more styling options
* Improvement: Customize Caddy styles live in the Customizer
* Improvement: Improved performance
* Improvement: Select2 added to admin settings dropdowns
* Improvement: Selectable variable products support in recommendations
* Improvement: Cart processing improvements
* Fix: Various bug fixes and improvements

= 1.7.1 =
* Fix: Broken translation text
* Improvement: Improved validation, sanitizing and escaping

= 1.7 =
* Compatibility: Add WooCommerce HPOS support
* Compatibility: Tested up to latest WooCommerce 8.5.2 and WordPress 6.4.3 versions
* Compatibility: Updated to support Caddy core 2.0
* Feature: Add custom free shipping meter text option
* Fix: Depreciated PHP < 8.0 code

= 1.6.10 =
* Improvement: Tested upto latest WC 6.8.2 and WP 6.0.2 versions
* Improvement: Caddy text translation issue

= 1.6.9 =
* Improvement: Convert all the integer value to float for better calculations
* Feature: Add SLEEK plan JS script to the Caddy settings page

= 1.6.8 =
* Fix: Users who bought monthly license key, was facing a license activation issue.

= 1.6.7 =
* Fix: Hide out of stock products from the product recommendation screen
* Fix: Delete premium license status option on plugin deactivation
* Fix: Save for later ajax action updated
* Improvement: Use the DB option to store the license value to check if the premium license is active or not
* Feature: Add affiliate link to Caddy branding

= 1.6.6 =
* Fix: Exclude products and categories from displaying in recommendation slider
* Feature: Add option to display Caddy on the Checkout page
* Fix: Excluding draft products to appear on the product recommendation
* Improvement: UK country code added in the free shipping meter

= 1.6.51 =
* Fix: Caddy page selection condition changes

= 1.6.5 =
* Improvement: Free plugin activation check using class name
* Improvement: Free shipping meter price updated with currency options
* Feature: Hide Caddy on Selected Pages
* Feature: Add fallback option if no up-sells are configured

= 1.6.4 =
* Improvement: Hide catalog visibility hidden products from recommendations
* Improvement: Remove save for later "added" class after deleting the item from the caddy cart
* Fix: Bug on display behavior settings after the plugin update
* Fix: Apply coupon AJAX issue
* Improvement: Remove subtotal section from caddy cart

= 1.6.3 =
* Improvement: Display behaviour added at top
* New Feature: Do nothing option added
* New Feature: Coupons discounts option added (same as free shipping meter condition)
* Improvement: Free shipping meter calculations updated based on a new option
* Improvement: New icons added for display behaviour, save button position, and caddy window position (in Caddy settings page).
* Improvement: Flatsome theme fixes
* Improvement: Updated Caddy logo

= 1.6.2 =
* Improvement: Caddy menu updated using new hook

= 1.6.1 =
* Improvement: License description message updated
* Improvement: Hide the activate button until a license key has been added
* Improvement: POT file updated
* Improvement: Free shipping bar condition updated

= 1.6 =
* New Feature: Notices functionality added for the cart events (mobile friendly)
* New Feature: Ability to change the cart icon
* Improvement: Free shipping meter changes
* Improvement: Admin section layout changes
* Improvement: Coupon condition updated
* Improvement: General performance optimizations
* Fix: License timeout issue
* Fix: Multi-site support updated

= 1.5.2 =
* Bug fix - plugin directory name updates

= 1.5.1 =
* Fixing EDD auto-updater function

= 1.5.0 =
* Bug fixes
* Free shipping condition updated
* License tab functionality updated
* Performance update - settings page changes
* Performance update - reduce license server checks

= 1.4.0 =
* Bug fixes
* License settings changes

= 1.3.0 =
* Bug fixes

= 1.2.0 =
* Bug fixes

= 1.1.0 =
* Bug fixes

= 1.0.0 =
* Initial release
