=== Conditional Cart Messages for WooCommerce - YourPlugins.com ===
Contributors: yourplugins
Tags: cart, notices, messages, checkout, woocommerce
Requires at least: 4.3.1
Tested up to: 7.1
Stable tag: 1.3.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Donate link: https://yourplugins.com/product/your-woocommerce-conditional-cart-notices

Show cart messages or notices in your WooCommerce cart by using conditional rules!

Made with love by yourplugins.com

== Description ==

= Show cart messages in WooCommerce cart based on conditional rules =

Adding cart notices to your e-commerce cart? Very easy with **Conditional Cart Messages**.

A more dynamic way to show a message or a notice in your WooCommerce cart!

**✅ NEW: Fully compatible with WooCommerce 8.3+ Block-based Cart & Checkout!**

* You can set different rules to make the message appear, such as the total price of the cart or the product price.
* Combine the rules to make the message appear at specific conditions, for example: If the total price of the cart is greater than $ 100 and the quantity in the cart is less than 5 show the message.
* Use the AND or OR operators to combine rules. You can also create rule groups.
* **Works with both classic WooCommerce templates and new Gutenberg blocks** - no configuration needed!
* **Future-proof**: Automatically detects and adapts to your cart/checkout template type

You can find the official documentation [here](https://yourplugins.com/documentation/your-woocommerce-conditional-cart-notices/getting-started "YourPlugins Conditional Cart Notices Official Documentation").

= Looking for more features? =

* Display a message also in the checkout, product, shop or any other page
* Get more conditions: Price, Products, Categories, User Roles, User Types, Billing and Shipping Country, Start and End Date, Product Quantity, Total Quantity, Total Amount, Total Net Amount, Total Taxes, Shipping Total, Total Coupon Discount Amount, Referrer URL
* Create unlimited message templates
* Add an icon to your message
* Add a button to your message
* Choose the background color (also on hover), the border color (also on hover), and the text color of your message
* Choose the background color, the border color, and the text color of your button

Check all the other premium features [here](https://yourplugins.com/product/your-woocommerce-conditional-cart-notices "YourPlugins Conditional Cart Notices Premium Features").

== Installation ==

1. From the back-end of your website click on **Plugins > Add new** and search for **Conditional Cart Messages for WooCommerce - YourPlugins.com**
2. Click on **Install Now**
3. Click on **Activate**
3. To get started follow the instructions here: https://yourplugins.com/documentation/your-woocommerce-conditional-cart-notices/getting-started

== Frequently Asked Questions ==

== Screenshots ==

== Changelog ==

= 1.3.3 [29/09/2026] =
* Compatibility: Declared support for WooCommerce High-Performance Order Storage (HPOS).

= 1.3.2 [21/09/2026] =
* Maintenance: Corrected the WordPress.org contributor metadata.

= 1.3.1 [21/09/2026] =
* Security: Added CSRF protection to conditional notice save and delete actions.
* Compatibility: Declared framework helper properties for PHP 8.2+.
* Tested with WordPress 7.1.1 and WooCommerce 11.1.1.

= 1.3.0 [09/02/2026] =
* **Major Update: WooCommerce 8.3+ Block-based Cart & Checkout Support**
    - ✅ Added full support for WooCommerce Gutenberg Blocks (Block-based Cart & Checkout)
    - ✅ Plugin now works seamlessly with both classic templates and new block-based templates
    - ✅ All 6 cart positions now support both classic hooks and Gutenberg blocks
    - ✅ PRO version: All 6 checkout positions now support both classic hooks and Gutenberg blocks
    - ✅ Future-proof: Compatible with WooCommerce 8.3+ while maintaining backward compatibility
* **Bug Fixes**
    - Fixed: `product_tag` filter conflict between FREE and PRO versions
    - Fixed: Cart position hook `woocommerce_before_cart_table` was incorrectly mapped
    - Removed: `product_tag` functionality from FREE version (now exclusive to PRO version)
* **Code Quality**
    - Cleaned up debug logs for production
    - Improved code organization and documentation
    - Enhanced compatibility layer for future WooCommerce updates

* 1.2
* 1.2.11 [08/01/2024]:
    - Add support for Woocommerce Products Tags

* 1.2.9 [22/06/2023]:
    - Bugfixes for PHP 8.1
    
* 1.2.7 [31/05/2022]:
    - Bugfixes
    
* 1.2.6 [07/04/2022]:
    - Bugfixes

* 1.2.5 [07/04/2022]:
    - Adding List_Form_Field and bootstrap 5

* 1.2.4 [07/04/2022]:
    - Adding ajax url

* 1.2.3 [01/04/2022]:
    - Adding filters: 'yps_wc_conditional_cart_notices/notice/view/notice::notice_message' and 'yps_wc_conditional_cart_notices/notice/view/notice::button_text'

* 1.2.2 [09/12/2021]:
    - Bug fixes

* 1.2.1 [09/12/2021]:
    - Reduce the number of scripts used on front-end

* 1.2.0 [07/12/2021]:
    - Bug fixes

* 1.1.2 [11/11/2021]:
    - Bugfixes

* 1.1.1 [11/11/2021]:
    - Framework fixes

* 1.1.0 [11/11/2021]:
    - Framework fixes

* 1.0.9 [05/11/2021]:
    - Bugfixes and adding filters

* 1.0.8 [05/11/2021]:
    - Bugfixes
    
* 1.0.7 [04/11/2021]:
    - Bugfixes

* 1.0.6 [09/07/2021]: 
    - Adding italian language

* 1.0.5 [09/07/2021]: 
    - Changing labels

* 1.0.4 [01/05/2021]: 
    - First stable release

== Upgrade Notice ==

Before upgrade please follow these instructions:

1. Make a backup is always a good idea
2. Upgrade any related add-on
3. Upgrade the addon

== A brief Markdown Example ==

1. From your Wordpress back-end click on "YourPlugins > WooCommerce Conditional Cart Notices"
2. Click on "New Notice" and type in a "Name"
3. Click on "Add rule" and set the following condition: "Price" "greater or equal" "100"
4. Set "Show Notice In" = "Cart" and add a message inside the field "Notice Message"
5. Click on "Save".
6. Create a WooCommerce Product with a price greater then 100.
7. Add the created product to cart and check your cart: A message should appear.
