CONDITIONAL FREE SHIPPING :: WooCommerce Plugin
by Raneri Web - www.raneri.it
------------------------------------------------

Version 2.01

1. What does this plugin do
2. Installation
3. Usage
4. Changelog


1. What does this plugin do
------------------------------
Conditional Free Shipping is a plugin for Wordpress+WooCommerce that enables a new shipping method, based on the target country,
the number and/or the amount of items the user has in the cart, the product categories, the maximum weight and more.

This lets the administrator set a rule like:
"If the user has AT LEAST three items in the cart AND its total amount is AT LEAST 10$ AND he is requesting the delivery to
Spain OR to France, make the shipping free; otherwise, proceed with the standard shipping rates."


2. Installation
------------------------------
Just copy the whole content of the ZIP file (it should be a single folder and the file you are reading right now, that you can
omit to copy) inside your wp-content/plugins/ directory.
Then go to Wordpress admin panel and enable the plugin.


3. Usage
------------------------------
You will see a new shipping method (Raneri Free Shipping) on top of WooCommerce -> Settings -> Shipping. Click it and configure
it as you like (don't forget to - also - enable the shipping method).
You can choose the Method Title (what the final user will see in the cart), the minimum quantity of items required to activate
it and the countries for which this method is valid. That's it.
Additional options include the possibility to set a minimum amount that has to be reached to activate free shipping and the
exclusion of selected states/provinces from free shipping.


3. Changelog
------------------------------
2.01        Fix: method not showing on old pre-shipping-zones install

2.00        Shipping Zones are now supported - WARNING: Old settings will be not imported into shipping zones, old users will have to setup free shipping conditions from scratch.
            Dropping support for old WooCommerce versions (and then old Wordpress releases). Minimum reqs are now WC 2.6+ and WP 4.4+

1.49		FIX: Syntax compliance with WooCommerce 3+ to avoid a warning message

1.48		FIX: Syntax compliance with newer versions of WooCommerce to avoid a warning message
		FIX: Products without categories now deactivate free shipping when a category restriction is set

1.47a		FIX: A problem with the previous update (1.47) corrupted a file. This is an hotfix update.

1.47		FIX: Free shipping for new customers without previous orders where not activated on some WooCommerce versions (thanks to user
		aureamx)

1.46		FIX: On WooCommerce 2.4.8+ Handle correct final price calculation when requirements for free shipping are matched and user select any other non-free shipping method that was forced to remain available with the "Don't remove these shipping methods" field. It should also fix problems with some multi-shipping plugins from third parties that some user reported to us

1.45		NEW: Deactivate free shipping when the normal shipping cost is too expansive. The plugin check the other delivery
		options and hide itself when the best one is more expansive than the value you specify (thanks to user unikwraps for the idea!)
		CHANGE: Dropped support for WooCommerce<2.1

1.44		NEW: Now you can choose one or more categories that always allow free shipping, even if there are also products from other categories in the cart

1.43		NEW: Added support for WPML translation of the motivational phrase and of the title of the shipping method (requires WPML 3.2.7 or newer)
		NEW: Now you can choose to set the minimum amount as a MAXIMUM amount (free shipping is activated if the total cart amount stays below this value)
		
1.42		Added support for Wordpress MU websites (thanks to user testhelvig)

1.41		FIX: A minimal form validation to the "Countries" field was added (thanks to user hyper24
		for reporting this!)
		FIX: Hiding all the other shipping methods when free shipping is available were not working
		anymore on Woo 2.1+ because of some changes on hooks (thanks to westefan!!!)

1.39
		FIX: Some incompatibilities with Chinese (and maybe other non-latin languages) have been fixed.
		*** Thanks to user Lokshu for the bug report.

1.38
		FIX/NEW: Now the shipping method names listed in "Don't remove these shipping methods" setting are human-friendly. It should also
		fix a PHP warning that showed until version 1.37 when Wordpress debug mode was enabled.
		*** Thanks to user Panhang for the bug report.

1.37
		FIX: Fixed a bug introduced in version 1.36 (minimum amount was matched too early for carts with more items, when no "minimum item count" was not set)
		*** Thanks to user Panhang for the bug report.

1.36
		FIX: On some Wordpress + WooCommerce installations, minimum amount didn't trigger free shipping with multiple quantities of same product in the cart. 
		*** Thanks to user Davesev for the bug report.


1.35
		NEW: Option to exclude virtual and downloadable products from the count of the minimum amount/quantity to get free shipping (default: true)
		*** Thanks to user Dissentia for the suggestion.

1.34
		NEW: Now you can customize the background color of the motivational message.
		NEW: New setting to specify one or more delivery option that must NOT be deleted even if free shipping is activated.
		*** Thanks to user Blairb for the suggestions.

1.32
		NEW: Added a maximum cart weight setting.
		NEW: You can now specify one or more product categories for free shipping.
1.31
		FIX: Some formal fixes to avoid PHP warnings.
		FIX: Now the plugin ZIP pack is directly installable from the Wordpress admin interface.

1.30
		NEW: Now you can choose to set the required quantity as a MAXIMUM quantity, so the value you set can work as an
		UNDER/OVER condition. For example you can tell users that free shipping is available for orders that include 3
		or LESS products (thanks to user franwess for this suggestion)

1.25
		NEW: Set a motivational phrase to be shown above the cart, to encourage users to reach the minimum amount to get
		free shipping.
 
1.20
		Now you can block selected states or provinces from free shipping. For example you can set free shipping for the
		United States, excluding Alaska and Hawaii.

1.11
		FIX: Solved a bug that produced an "invalid shipping method" on some WooCommerce installations when trying to
		proceed to payment.

1.1
		Added the possibility to define a minimum amount to get free shipping.

1.0
		Initial release.