=== WC - APG Weight Shipping ===
Contributors: artprojectgroup
Donate link: https://artprojectgroup.es/tienda/donacion
Tags: Art Project Group, APG, Plugins, WooCommerce, e-Commerce, Commerce, Shop, Virtual shop, Shipping, Weight, Dimensions, ZIP, Postcode, State, Country, Tax, Shipping classes, WooCommerce Product Bundles, WPML
Requires at least: 3.8
Tested up to: 5.3
Stable tag: 2.3.1.4
WC requires at least: 2.6
WC tested up to: 3.8
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Add to WooCommerce shipping costs calculating based on weight, size and post code, state (province) and/or customer’s country.

== Description ==
**IMPORTANT: *WC - APG Weight Shipping* required WooCommerce 2.6.0 or higher.**

**NOTE: WooCommerce - APG Weight and Postcode/State/Country Shipping is now called *WC - APG Weight Shipping*.**

**WC - APG Weight Shipping** add to your WooCommerce store the ability to calculate shipping costs based on weight and postcode, state (province) and/or country address shipping.

= Features =
* You can add a fixed cost of packing and/or handling per shipping.
* You can add, also cost of packing, an additional fixed cost as amount or percentage, per shipping or product.
* You can create an unlimited number of rates.
* You can create rates with maximum weight and/or dimensions.
* You can create rates for number of items.
* You can create rates for cart total.
* You can assign rates to specific shipping classes.
* You can select the highest shipping class rate instead of the sum of rates.
* You can choose accept or not weight or dimensions excess.
* You can exclude shipping for one or several product categories.
* You can exclude shipping for one or several product tags.
* You can exclude shipping for one, several or all shipping classes.
* You can exclude user roles.
* You can hide payment gateways.
* You can show a custom icon image.
* You can show the estimated delivery time.
* Fully compatible with [WooCommerce Product Bundles](https://woocommerce.com/products/product-bundles/) plugin.
* Fully compatible with [WPML](https://wpml.org/?aid=80296&affiliate_key=m66Ss5ps0xoS) plugin.

= Translations =
* Español ([**Art Project Group**](https://artprojectgroup.es/)).
* English ([**Art Project Group**](https://artprojectgroup.es/)).
* Français ([**Guillaume**](http://guillaume-thibord.com/)).
* Português ([**Alain Aubry**](http://www.casa-indigo.com/)).
* Português (Brasil) ([**Danilo Lopes da Silva**](http://www.armarinhosdonaflor.com.br/)).
* Italiano ([**Angelo Lazzari**](http://www.redtulp.com/)).

= Technical support =
**Art Project Group** offers [**Technical support**](https://artprojectgroup.es/tienda/ticket-de-soporte) to configure or install ***WC - APG Weight Shipping***.

= Origin =
**WC - APG Weight Shipping** has been programmed from plugin [*AWD Weight/Country Shipping*](https://wordpress.org/plugins/awd-weightcountry-shipping/) from [Andy_P](https://profiles.wordpress.org/andy_p/) and [Mantish](https://wordpress.org/support/profile/mantish) modification published on [GitHub](https://gist.github.com/Mantish/5658280), who, despite his brilliance, didn’t offer all the features we needed. Even so their work has been absolutely essential for the realization of this plugin.

= More information =
On our official website you can learn more about [**WC - APG Weight Shipping**](https://artprojectgroup.es/plugins-para-woocommerce/wc-apg-weight-shipping). 

= Comments =
Don’t forget to leave us your comment on:

* [WC - APG Weight Shipping](https://artprojectgroup.es/plugins-para-woocommerce/wc-apg-weight-shipping) on Art Project Group.
* [Art Project Group](https://www.facebook.com/artprojectgroup) on Facebook.
* [@artprojectgroup](https://twitter.com/artprojectgroup) on Twitter.

= More plugins =
Remember that you can find more [plugins for WordPress](https://artprojectgroup.es/plugins-para-wordpress) and more [plugins for WooCommerce](https://artprojectgroup.es/plugins-para-woocommerce) on [Art Project Group](https://artprojectgroup.es) and our profile on [WordPress](https://profiles.wordpress.org/artprojectgroup/).

= GitHub =
You can follow the development of this plugin on [Github](https://github.com/artprojectgroup/woocommerce-apg-weight-and-postcodestatecountry-shipping).

== Installation ==
1. You can:
 * Upload the `woocommerce-apg-weight-and-postcodestatecountry-shipping` folder to `/wp-content/plugins/` directory via FTP. 
 * Upload the full ZIP file via *Plugins -> Add New -> Upload* on your WordPress Administration Panel.
 * Search **WC - APG Weight Shipping** in the search engine available on *Plugins -> Add New* and press *Install Now* button.
2. Activate plugin through *Plugins* menu on WordPress Administration Panel.
3. Set up plugin on *WooCommerce -> Settings -> Shipping* or through *Settings* button.
4. Ready, now you can enjoy it, and if you like it and find it useful, make a [*donation*](https://artprojectgroup.es/tienda/donacion).


== Frequently asked questions ==
= How do you set up? =
As the plugin configuration is a bit complex, we have created a tutorial where we explain setup process step by step with a real example. You can visit it on [¿Cómo se configura WooCommerce – APG Weight and Postcode/State/Country Shipping?](https://artprojectgroup.es/como-se-configura-woocommerce-apg-weight-and-postcodestatecountry-shipping).

= Support =
If you need help to configuring or installing **WC - APG Weight Shipping**, **Art Project Group** offers its service [**Technical Support**](https://artprojectgroup.es/tienda/ticket-de-soporte). 

*In any case **Art Project Group** provides any kind of free technical support.*

== Screenshots ==
1. Screenshot of WC - APG Weight Shipping. Shipping Options Tab.
2. Screenshot of WC - APG Weight Shipping. APG Shipping Tab.

== Changelog ==
= 2.3.1.4 =
* Small fixes in shipping cost calculations. **Reported by [aceone999](https://wordpress.org/support/topic/wrong-fee-with-shipping-classes/)**.
= 2.3.1.3 = 
* Small fixes.
= 2.3.1.2 = 
* Small fixes in shipping cost calculations. **Reported by [aceone999](https://wordpress.org/support/topic/version-2-3-1-1-still-broken/)**.
= 2.3.1.1 = 
* Small fixes in shipping cost calculations. **Reported by [aceone999](https://wordpress.org/support/topic/bug-for-dimensions-in-2-3-1/)**.
= 2.3.1 = 
* Rates generation function rewritten.
= 2.3.0.2 = 
* Small fixes in shipping cost calculations. **Reported by [lepress](https://wordpress.org/support/topic/fee-is-wrong-for-being-ignorant-the-shipping-class/#post-11943232)**.
= 2.3.0.2 = 
* Small fixes in the exclusion of shipping by product categories and tags.
= 2.3.0.1 = 
* Small fixes.
= 2.3 = 
* Added options to exclude shippings by product categories and tags. **Update sponsored by [YonofumoYovapeo](https://yonofumoyovapeo.com)**.
* Screenshot updated.
= 2.2.3.4 = 
* Small fixes.
= 2.2.3.3 = 
* Small fixes.
= 2.2.3.2 = 
* Small fixes.
= 2.2.3.1 = 
* Small fixes.
= 2.2.3 = 
* Renaming the plugin: from WooCommerce - APG Weight and Postcode/State/Country Shipping to WC - APG Weight Shipping.
= 2.2.2.2 = 
* Adjust to optimize WooCommerce Product Bundles compatibility.
= 2.2.2.1 = 
* Header updated.
* Stylesheet updated.
* Screenshot updated.
= 2.2.2 = 
* Fixed Polylang compatibility issue.
* Added debugging field. 
= 2.2.1.6 = 
* Fixed broken fields.
= 2.2.1.5 = 
* Support for [WPML](https://wpml.org/?aid=80296&affiliate_key=m66Ss5ps0xoS) plugin.
= 2.2.1.4 =
* Adjust to optimize WooCommerce Product Bundles compatibility.
* Fixed bug with WooCommerce Germanized Pro.
= 2.2.1.3 = 
* Support for [WooCommerce Product Bundles](https://woocommerce.com/products/product-bundles/) plugin.
= 2.2.1.2 = 
* Fixed plugin configuration.
= 2.2.1.1 = 
* Fixed localization.
= 2.2.1 = 
* Fixed bug with shipping rates by shipping classes calculation.
= 2.2.0.4 = 
* Adjust to optimize WooCommerce 3.0 compatibility.
= 2.2.0.3 = 
* Adjust to optimize WooCommerce 3.0 compatibility.
= 2.2.0.2 = 
* Error prevention in My account page.
= 2.2.0.1 = 
* Error prevention if WooCommerce is disabled.
= 2.2 = 
* Support to hide payment gateways.
= 2.1.0.1 =
* Fixed user role key.
= 2.1 =
* Support to limit free shipping by user roles. **Update sponsored by [**Dermoder**](http://dermoder.com)**
* Support to shipping rates per cart total. **Update sponsored by [**Marketing Paradise**](https://mkparadise.com)**
* Support to select the highest shipping class rate.
* Support to add a custom image.
* Support to add the estimated delivery time.
* Updated screenshot.
= 2.0.3.1 = 
* Adjust to optimize WooCommerce 2.7 compatibility.
= 2.0.3 = 
* Support for multisite installations.
= 2.0.2.6 = 
* Fixed bug with unique shipping rates calculation.
* Updated code uncompatible with WooCommerce 2.7.
= 2.0.2.5 = 
* Fixed bug with shipping rates by shipping classes calculation.
= 2.0.2.4 = 
* Fixed bug with shipping rates without overweight/over dimension calculation.
* Fixed bug with shipping rates by shipping classes calculation.
= 2.0.2.3 =
* Added option to enabled/disabled a shipping method.
= 2.0.2.2 =
* Removed nonexistence CSS code load.
= 2.0.2.1 =
* Fixed bug on plugin deleting.
= 2.0.2 =
* Rewritten shipping classes rates calculation.
= 2.0.1.1 =
* Fixed bug with shipping classes management.
= 2.0.1 =
* Added support for multiple shipping methods per shipping zone.
= 2.0 =
* WooCommerce 2.6 fully compatibility. **Note: Not compatible with WooCommerce versions earlier than 2.6.0, including it setting.**
= 1.9.3.1 =
* Created a security alert for the next version 2.0.
= 1.9.3 =
* Removed links to gateways option.
= 1.9.2 =
* Fixed bug in the gateway list.
= 1.9.1.1 =
* Fixed bug with taxes configured with 0 percent.
= 1.9.1 =
* Updated code to maintain compatibility with the new version of **WooCommerce - APG Free Postcode/State/Country Shipping**.
* Updated the first screenshot.
= 1.9.0.6 =
* Updated support links and small updates.
= 1.9.0.5 =
* Fixed bug with sizes reported and fixed by [DJ Team Digital](http://www.teamdigital.com.au/).
= 1.9.0.4 =
* Updated font package. New Google+ icon.
* Updated translations.
= 1.9.0.3 =
* Portuguese translation by [**Alain Aubry**](http://www.casa-indigo.com/).
= 1.9.0.2 =
* WooCommerce activation control.
= 1.9.0.1 =
* Warning deleted when added a new shipping.
* Updated screenshot.
= 1.9 =
* Updated form that allows create new APG Shipping and creating new functions to synchronize it with WooCommerce 2.4 new features.
* Updated translations.
* Updated screenshot.
= 1.8.0.4 =
* Warning deleted showed on particular settings.
= 1.8.0.3 =
* Italian translation by [**Angelo Lazzari**](http://www.redtulp.com/).
* Updated french translation.
= 1.8.0.2 =
* Portuguese (Brasil) translation by [**Danilo Lopes da Silva**](http://www.armarinhosdonaflor.com.br/).
= 1.8.0.1 =
* Deleted message showed on checkout.
= 1.8 =
* Size calculation fix.
* Fixed error showed with blank shipping classes.
* Fixed bug detected when updating specific countries.
* Added new option to not ship to certain shipping classes.
* Updated translations.
* New responsive stylesheet.
* Updated screenshot.
= 1.7.5.2 =
* Fixed bug in taxes calculation.
= 1.7.5.1 =
* Fixed bug in taxes calculation.
= 1.7.5 =
* Fixed bug with postcodes. Bug reported on [Support](https://wordpress.org/support/topic/order-of-post-code-wildcards-may-produce-wrong-results).
* Changing the internal structure of the plug to fit WordPress standards.
= 1.7.4.2 =
* Fixed bug detected in taxes calculation.
= 1.7.4.1 =
* Fixed bug that prevents purchase without tax setting.
= 1.7.4 =
* Fixed bug that prevents purchase.
* Improved totaling with multiple shipping classes.
= 1.7.3.10 =
* Fixed bug detected in taxes calculation.
= 1.7.3.9 =
* French translation by [**Guillaume**](http://guillaume-thibord.com/).
= 1.7.3.8 =
* Fixed bug detected in multiple shipping classes reading.
= 1.7.3.7 =
* Fixed bug detected in partial taxes calculating.
= 1.7.3.6 =
* Fixed bug detected in additional fee calculating.
* Fixed bug detected in partial taxes calculating.
= 1.7.3.5 =
* Fixed bug detected in additional fee calculating.
* Fixed bug detected in maximum price returning.
= 1.7.3.4 =
* Fixed bug detected in taxes calculation.
= 1.7.3.3 =
* Fixed bug detected in rates with shipping classes calculation.
= 1.7.3.2 =
* Fixed bug detected in rates with shipping classes calculation.
= 1.7.3.1 =
* Fixed bug detected in rates calculation when Return the maximum price is disabled.
= 1.7.3 =
* Fixed bug detected in size rates calculation.
* Error control when WooCommerce read gateways.
= 1.7.2.2 =
* Fixed bug detected in mixed rates (weight and size).
= 1.7.2.1 =
* Fixed bud detected in shipping classes list from global group.
= 1.7.2 =
* Fixed bug detected in mixed rates (weight and size).
= 1.7.1 =
* Fixed bug that didn’t consider the origin country in post codes and states or provinces groups.
= 1.7 =
* Fixed an error that occurred when creating additional shipping.
* New interface and management function to add additional shipping.
* Optimization code of **WC - APG Weight Shipping** to consume minimum resources amount possible. Thanks *Óscar de la Mata Casasola* for the warning.
* Updated screenshot.
= 1.6.3.2 =
* Fixed bug in shipments that exceed maximum weight entered rates calculations.
= 1.6.3.1 =
* Fixed bug in rates calculations.
= 1.6.3 =
* Fixed bug in global countries group rates calculations.
= 1.6.2 =
* Fixed bug in rates calculations.
= 1.6.1 =
* Fixed bug using no attend groups.
= 1.6 =
* Allows shipping with one, several or all shipping classes.
* Allows creating non-rising rates.
* New links and icons.
* Stylesheet updates.
= 1.5.1.1 =
* Changing the URL of the plugin in Art Project Group.
= 1.5.1 =
* Fixed bug that erased all settings with plugin deactivation.
* Minor fix that prevents an error when collecting information about the plugin.
= 1.5 =
* Fixed bug detected in global group.
* Added tax selection for global group field.
= 1.4.2 =
* Donation link update.
= 1.4.1 =
* Minor fix that prevents error code showed when collecting gateways.
= 1.4 =
* Fixed bug in weight calculation with virtual products variations.
* Fixed bug in tax calculation.
* Minor fix that prevents an error when collecting information about the plugin.
= 1.3.6 =
* Fix to show gateways list correctly in all shipping.
* Donation button icon and link correction.
= 1.3.5 =
* Minor fix that prevents error code showed when collecting gateways.
= 1.3.4 =
* Fix for gateway list in all shipping.
* Added cache for external data.
* Donation button changed.
= 1.3.3 =
* Fixed WooCommerce 2.1.2 compatibility with the gateway available for each shipping.
= 1.3.2 =
* Deleting error message that appeared with WooCommerce set to sell in all countries.
= 1.3.1 =
* Updated Settings link.
= 1.3 =
* Update code to be 100% compatible with the latest version of WooCommerce. **Note: Not compatible with WooCommerce versions earlier than 2.1.0.**
= 1.2 =
* New feature to clean database with uninstallation.
= 1.1 =
* Added option to select multiple gateways for specific shipping.
= 1.0.2 =
* Added error showed with empty fields.
= 1.0.1 =
* Replace external image by local image.
= 1.0 =
* Updated style sheets with new WordPress style.
* Fixed small bugs in the code.
= 0.9 =
* Added new option to hide shipping cost when WooCommerce - APG Free Postcode/State/Country Shipping is enabled.
* Hide or show options *Add countries to specific* and *Add global group* depending WooCommerce settings.
* Updated screenshot.
= 0.8 =
* Added option to create a global group, with support for all countries not included in the other groups.
* Fixed bug that showed an error message in countries without states (provinces).
* Updated screenshot.
= 0.7.2 =
* Fixed bug displaying all gateways in the other shipping.
= 0.7.1 =
* Fixed bug with specific gateway selection.
= 0.7 =
* Added option to select specific gateway per shipping.
* Added option to indicate post code and/or state (province) groups where orders can’t be attended.
= 0.6.4 =
* Updated setting screen.
* Updated plugin links.
* Updated screenshot.
* Added new links.
= 0.6.3 =
* Updated setting screen.
* Updated plugin links.
* Updated screenshot.
= 0.6.2 =
* Updated translations.
= 0.6.1 =
* Setting configuration existence control.
* Added new links.
= 0.6 =
* Added option to create size rates.
= 0.5.1 =
* ZIP file fixed.
= 0.5 =
* Added measures support.
* Added option to return, or not, the maximum price when order excess weight or size.
* Screen settings redesign.
* Minor fixes in the code.
= 0.4 =
* Fixed bug with additional shipping configurations saving.
* Fixed bug in Spanish language.
= 0.3 =
* Added Additional fee field.
* Added tax types per group.
= 0.2 =
* Small code modifications and arrangements.
* Inclusion of links.
* Updated information texts.
* New additional shipping field to create new shipping.
= 0.1 =
* Initial version.

== Upgrade Notice ==
= 2.3.1.4 =
* Small fixes in shipping cost calculations. **Reported by [aceone999](https://wordpress.org/support/topic/wrong-fee-with-shipping-classes/)**.

== Translations ==
* *English*: by [**Art Project Group**](https://artprojectgroup.es/) (default language).
* *Español*: por [**Art Project Group**](https://artprojectgroup.es/).
* *Français*: par [**Guillaume**](http://guillaume-thibord.com/).
* *Português*: por [**Alain Aubry**](http://www.casa-indigo.com/).
* *Português (Brasil)*: por [**Danilo Lopes da Silva**](http://www.armarinhosdonaflor.com.br/).
* *Italiano*: da [**Angelo Lazzari**](http://www.redtulp.com/).

== Support ==
Since **WC - APG Weight Shipping** is totally free, **Art Project Group** only provides payment [**Technical Support**](https://artprojectgroup.es/tienda/ticket-de-soporte) service. In any case **Art Project Group** provide any kind of free technical support.

== Donation ==
Did you liked and you have proved useful **WC - APG Weight Shipping** on your website? We would appreciate a [small donation](https://artprojectgroup.es/tienda/donacion) that will help us to continue improving this plugin and create more plugins totally free for the entire WordPress community.

== Thanks ==
* To [Andy_P](https://profiles.wordpress.org/andy_p/) and [Mantish](https://wordpress.org/support/profile/mantish) for the great plugin and modification that have inspired **WC - APG Weight Shipping**.
* To all that use it.
* All that you help to improve it.
* All you made donations.
* All that you encourage us with your comments.

Thank you very much to all!