=== mondialrelay-wordpress ===
Contributors: Kasutan
Wordpress version - requires at least: 4.0
Tested up to: 6.9.X
WooCommerce version - requires at least: 5.2
Tested up to: 10.4.X

== Description ==

Gérez vos expéditions Mondial Relay dans WooCommerce en toute simplicité

- Fixez les tarifs de livraison dans WooCommerce
- Votre client choisit un Point Relais® ou la livraison à domicile
- Imprimez l’étiquette d’expédition directement dans WordPress
- Votre client suit l’avancement de la livraison sur votre site
- Consultez l’état de vos livraisons dans WordPress ou exportez-les
- Mises à jour de l’extension en un clic depuis WordPress

== Installation ==

- Upload the entire 'mondialrelay-wordpress' folder to the '/wp-content/plugins/' directory
- Activate the plugin through the 'Plugins' menu in WordPress

More on https://mondialrelay-wp.com/

== Changelog ==
= 5.7, Nov 03, 2025
* Check : compatibility with WooCommerce 10.3.X
* Add : More error message with debug mode
* Add : JS optimization
* Add : source field for APIv2 call
* Add : documentation link in backoffice
* Fix : Recording of data from relay and locker points when ordering in block configuration
* Fix : logo display
* Fix : JS Alias
* Fix : Incompatibility with plugin Up2Pay
* Fix : waning messages in file debug.log
* Fix : error 95 in Web Service Test
* Fix : retrocompatibility for WooCommerce 10.0.3 fix
* Fix : Correction of translations

= 5.6, Jul 22, 2025
* Fix : Incompatibility with WooCommerce 10.0.3

= 5.5, Jul 17, 2025
* Fix : Incorrect display of the plugin versioning alert message
* Fix : Invisible checkout button on the cart page for certain themes using WooCommerce blocks

= 5.4, Jul 7, 2025
* Check : compatibility with WooCommerce 10.0.0
* Add : Error message more precise for APIv2
* Add : Obsolete indication removed for code 24R, option order changed and texts modified
* Add : Update for the automatic upgrade process (EDD component)
* Add : blocking shipment creation with APIv1 for Germany and Austria, and for Home delivery in France (must use APIv2)
* Add : Preparing to accept payments by Apple Pay and Google Pay
* Fix : Mass creation fixed for APIv1
* Fix : Fatal error on activation for specific theme
* Fix : Warning messages in the debug.log file
* Fix : Error selecting shipping methods on the cart page
* Fix : XML error with the APIv2 (not well formated error message)
* Fix : Recording of data from relay and locker points when ordering

= 5.3.3, May 26, 2025
* Check : compatibility with WooCommerce 9.9.0 based on 9.9.0-Beta2
* Add : Use of the email address and sender name used by WooCommerce
* Add : Page language taken into account when displaying the Widget
* Fix : Line break for automatic mail

= 5.3.2, Apr 7, 2025
* Check : compatibility with WooCommerce 9.8.0
* Add : Use of transcients to save data from the frontend rather than the WooCommerce global variable (unreliable)
* Add : More informations in debug.log file
* Add : Delivery in Poland
* Fix : Registering the relay point address

= 5.3.1, Jan 20, 2025
* Check : compatibility with WooCommerce 9.6.0
* Add : Shipping creation popup is now responsive
* Fix : Map display for Germany and Austria
* Fix : Compatibility with the WooCommerce Point of Sale tab
* Fix : Mass creation fixed for APIv2
* FIx : correction of certain texts

= 5.3, Oct 1, 2024
* Check : compatibility with WooCommerce 9.4.X based on 9.4.0-Beta2
* Add : Filter to change the mail
* Fix : incompatibility with the WooCommerce block editor
* Fix : Special character in the APIv2 password causing an XML error
* Fix : Level 0 of insurance causing an error for Italy with the APIv2
* Fix : Multiple messages in error_log
* Fix : Security key change for test account

= 5.2, June 11, 2024
* Fix : error 10001 with APIv1 expedition creation

= 5.1, June 10, 2024
* Check : compatibility with WooCommerce 9.0.X based on 9.0.0-RC1
* Add : HOM shipping in France with APIv2 integration
* Add : Compatibility with WooCommerce Blocs
* Add : preparation for compatibility with espress payments (for next update) 
* Fix : Shipping method weight limits
* Fix : Notice in Order details
* Fix : InPost Color for front button
* Fix : Relay Point Delivery for Deutschland and Autriche

= 4.7, Mars 17, 2024
* Check : compatibility with WooCommerce 8.7.X based on 8.7.0-RC1
* Check : compatibility with WordPress 6.5 based on 6.5 RC1
* Add : Complete shipping adress in index for search purpose
* Add : New parameter to change the link position in the cheackout page (Option in Maintenance)
* Add : New functionnality to block the payment if a relay point or a locker is mandatory and not chosen yet (replace payment button by a button to choose a relay point or a locker)
* Fix : Fatal error in WebService Test
* Fix : Compatibility with plugin "Ultimate Gift card"
* Fix : Fatal error if shipping is disabled in WooCommerce
* Fix : "Mondial Relay - InPost Officiel" shipping method display in WooCommerce
* Fix : Configuration tab display

= 4.6, Nov 25, 2023
* Fix : Error 33 in expedition creation
* Fix : Expedition number missing in mass creation
* Fix : Impossibility to download labels in mass creation

= 4.5, Nov 6, 2023
* Fix : Fatal error in order page

= 4.4, Nov 2, 2023
* Check : compatibility with WooCommerce 8.3.X based on 8.3.0-beta.1
* Check : compatibility with WordPress 6.4 based on 6.4 RC2
* Add : Compatibility with WooCommerce HPOS
* Add : Enhanced mail editor
* Fix : Fatal error when installing the plugin
* Fix : error 14 in the WebService tester
* Remove : DRI shipping type because it is no longer available on MR contracts

= 4.3, Aug 9, 2023
* Check : compatibility with WooCommerce 8.0.X
* Check : compatibility with WordPress 6.3 based on 6.3 RC4
* Add : Status and Delivery columns can now be sorted on the Expedition table
* Fix : multiclic problem on single expedition creation causing multiple shipment creation
* Fix : error 31 due to certain relay point names containing a "%"
* Fix : link to choose relay point or locker not working with themes that duplicate content on checkout page
* Remove : WooCommerce minimum version is now 5.1

= 4.2, Jun 14, 2023
* Check : compatibility with WooCommerce 7.8.X
* Fix : incompatibility with certain checkout page builder plugins (such as Elementor)
* Fix : display problem in the backoffice in translated versions
* Fix : error 31 due to certain relay point names containing special characters
* Add : preparation for an overhaul of the editor for emails sent by the module
* Remove : unnecessary files for shipping method management

= 4.1, Feb 9, 2023 =
* Check : compatibility with WooCommerce 7.4.X based on 7.4.0 RC2
* Add : InPost popup layout for delivery in Spain, Portugal and Italy
* Add : 24R/MED method to offer delivery in relay point only
* Add : 24R/APM method to offer delivery in lockers only
* Add : 25 kg weight limit for delivery in Lockers
* Add : Duplication function for "Mondial Relay Officiel" shipping method type in the same geographical zone
* Add : Logo for delivery in lockers
* Add : Logo for delivery with InPost (delivery in Spain, Portugal and Italy)
* Add : Filter to change the address store in the expedition address when a relay point is selected
* Add : Filter to change the expedition address used when creating a Mondial Relay shipment
* Add : Filter to change the status used for the mass creation function
* Add : Explanation on the shipping method parameters
* Remove : 24R method which is now obsolete
* Remove : residual code for obsolete Mondial Relay methods LD1 and LDS
* Fix : Decimal problem with promo codes to define whether the "Mondial Relay official" method should be free
* Fix : Notice if no title for a Weight Based Shipping method
* Fix : Locker selection with the test account
* Fix : Translation issues

= 3.6, Dec 14, 2022 =
* Check : compatibility with WooCommerce 7.2.X
* Add : Add filter to add a client number during expedition creation process
* Add : New parameter in maintenance menu to change the hook used on checkout
* Fix : blank popup with some themes
* Remove : Unnecessary hyphen in line 2 of the relay point address

= 3.5, OCT 11, 2022 =
* Check : compatibility with WooCommerce 7.0.X
* Add : Add filter to change the weight area part on cart
* Add : Link to the order page on Mass creation and Expedition dashboard
* Fix : Duplicate content with Divi (causing blank popup, order without relay point, ...)

= 3.4, Sept 14, 2022 =
* Check : compatibility with WooCommerce 6.9.X
* Add : Add filter to change the area with the link to open the popup
* Add : Facturation names taken into account if delivery names are empty
* Add : Use of objet WC_order to get database information
* Add : Improvement of the popup visual
* Add : Taking into account the new Mondial Relay logo
* Fix : Deleting unused custom fields
* Fix : Removal of useless custom fields if delivery outside Mondial Relay
* Fix : Warning on the front if an empty method is present in the table
* Fix : Map loading even on small screen for display when switching to landscape mode
* Fix : Fatal error for some users on checkout
* Fix : Sender name limited to 32 characters
* Fix : Integration of coupon codes to define whether the "Mondial Relay Officiel" method should be offered
* Fix : Corrected call for package tracking in the order details and added call details in the error message in debug mode


= 3.3, May 27, 2022 =
* Check : compatibility with WordPress 6.0.X
* Check : compatibility with WooCommerce 6.6.X based on 6.6.0 Beta1 
* Fix : "Mondial Relay Officiel" method not displayed with one price line
* Fix : "Mondial Relay Officiel" method displayed even if the cart weight is higher than the max weight allowed
* Fix : "Mondial Relay Officiel" method modifications can't be registered for some users
* Fix : Problem with a particular apostrophe in the name of a relay point
* Fix : Grammatical error in Dutch
* Fix : Delivery Adress not registered if the 3.2 update is not fully used (the new PHP can be use with the old JavaScript because of a non updated CDN)

= 3.2, May 10, 2022 =
* Check : compatibility with WooCommerce 6.5.X
* Fix : Fatal error blocking display of already shipped orders in WooCommerce
* Fix : Problem with the relay point address being cut off, leading to an empty shipping address

= 3.1, Mars 09, 2022 =
* Check : compatibility with WooCommerce 6.3.X
* Check : compatibility with WordPress 5.9.X
* Add : Shipping method Mondial Relay Official
* Remove : obsolete Mondial Relay methods LD1 and LDS

= 2.10, Dec 22, 2021 =
* Check : compatibility with WooCommerce 6.1.X based on 6.1.0 Beta1 
* Fix : error 97 with the function for updating the status of shipments in the "Shipping" table

= 2.9, Dec 19, 2021 =
* Check : compatibility with WooCommerce 6.0.X
* Add : option to change the order status when the expedition status change to "Package delivered"
* Add : more details in debug mode for error 789
* Fix : function for updating the status of shipments in the "Shipping" table causing the status to disappear

= 2.8, Nov 5, 2021 =
* Check : compatibility with WooCommerce 5.9.X 
* Fix : error 404 in backoffice 

= 2.7, Sept 23, 2021 =
* Check : compatibility with WooCommerce 5.8.X based on 5.8.0 Beta2
* Check : compatibility with WooCommerce 5.7.X
* Add : orders in "Completed" status in the shipment table
* Fix : special character blocking shipment creation in the name of the relay point
* Fix : call to script mondialrelay_admin_mass_shipping

= 2.6, Aug 20, 2021 =
* Fix : Fatal error with old version of PHP

= 2.5, Aug 12, 2021 =
* Check : compatibility with WooCommerce 5.6.X based on 5.6.0 RC1
* Check : compatibility with WordPress 5.8.X
* Add : new shipment tracking table with sorting, filtering and export possibilities
* Fix : suppression of the wrong update message in the maintenance menu (duplication with the update mechanism of WordPress)
* Fix : inoperative check on the length of the address complement of the "Seller" tab
* Fix : pb with @ character in adress fields, now replace by a
* Fix : php notices in backoffice because of undefined values

= 2.4, July 12, 2021 =
* Check : compatibility with WooCommerce 5.5.X based on 5.5.0 RC2
* Add : compatibility with WooCommerce Table Rate Shipping Pro Plugin from PluginHive
* Add : option to bypass weight control
* Fix : Infinite search in popup if the country selected is Monaco

= 2.3, June 1, 2021 =
* Check : compatibility with WooCommerce 5.4.X based on 5.4.0 RC1
* Fix : Incompatibility with PayPal Checkout from WooCommerce
* Fix : Forbidden characters in relais point names

= 2.2, May 4, 2021 =
* Check : compatibility with WooCommerce 5.3.X based on 5.3.0 RC2
* Fix : Empty emails sent with 1's in the subject and in the text
* Fix : User lang code if the lang browser code is more than 2 characters

= 2.1, April 15, 2021 =
* Check : compatibility with WooCommerce 5.2.X
* Add : new function for mass generation of shipments and labels
* Add : translation of the plugin into English, Spanish and Dutch
* Add : taking into account custom order statuses
* Add : possiblity to have differents names for facturation and delivery with relais point
* Fix : using facturation names instead of delivery names
* Fix : call to Webservice with SoapClient on order detail pages
* Fix : changing the country in the popup window causing pricing errors

= 1.22, Mar 5, 2021 =
* Check : compatibility with WooCommerce 5.1.X based on RC1
* Fix : compatibility with new version of plugin Flexible shipping

= 1.21, Feb 10, 2021 =
* Check : compatibility with WooCommerce 5.0.X
* Fix : error if cart is more than 30kg with Price based on weight plugins
* Fix : unwanted notices in expedition creation popup
* Add : new option to choose if JS loads in header or in footer
* Add : Info for WooCommerce compatibility

= 1.20, Jan 11, 2021 =
* Check : compatibility with WooCommerce 4.9.X
* Fix : error if there are several shipping methods to choose
* Add : preparation for version 2.0

= 1.19, Dec 8, 2020 =
* Check : compatibility with WooCommerce 4.8.X
* Check : compatibility with WordPress 5.6.X
* Fix : error with SOAP connections

= 1.18, Nov 11, 2020 =
* Check : compatibility with WooCommerce 4.7.X
* Add : preparation for V2.0

= 1.17, Oct 15, 2020 =
* Check : compatibility with WooCommerce 4.6.X
* Fix : special character blocking expedition creation

= 1.16, Sept 8, 2020 =
* Check : compatibility with WooCommerce 4.5.X based on 4.5.0 RC3
* Fix : Shipping address required even if not necessary when a relay point is chosen

= 1.15, Aug 28, 2020 =
* Check : compatibility with WooCommerce 4.5.X based on 4.5.0 RC1
* Add : compatibility with Custom Shipping Methods plugin
* Fix : Delivery address when several changes are made in the delivery method selection, including a relay point

= 1.14, Aug 13, 2020 =
* Fix : retrocompatibility with WordPress older than 5.5

= 1.13, Aug 13, 2020 =
* Check : compatibility with WooCommerce 4.4.X based on 4.4.0 RC1
* Fix : compatibility with WordPress 5.5 - delivery adress when relay point chosen
* Fix : error message for licence management

= 1.12, July 09, 2020 =
* Check : compatibility with WooCommerce 4.3.X
* Add : compatibility with oik weight zone shipping plugin
* Fix : some text in the expedition creation popup

= 1.11, Juin 04, 2020 =
* Check : compatibility with WooCommerce 4.2.X
* Fix : enqueue scripts before </body> instead of in the <head>

= 1.10, April 24, 2020 =
* Check : compatibility with WooCommerce 4.1.X based on 4.1.0 rc1
* Fix : deletion of unused css property
* Fix : bad text display
* Fix : Try Catch for label generation
* Add : new item in debug mode for configuration and shipping screens

= 1.9, March 10, 2020 =
* Check : compatibility with WooCommerce 4.0.X
* Fix : facturation pb if delivery and facturation are in different countries
* Add : new items in debug mode

= 1.8, January 29, 2020 =
* Check : compatibility with WooCommerce 3.9.X based on 3.9.1
* Fix : pb with ¨ character in adress fields
* Fix : pb with expedition creation popup (can't access validation button)

= 1.7, January 7, 2020 =
* Fix : auto update

= 1.6.3, January 7, 2020 =
* Check : compatibility with WooCommerce 3.9.0 based on 3.9.0 rc2
* Fix : pb causing multiple expedition creation for the same delivery
* Fix : pb if company name is longer than 31 characters
* Fix : warning with Flexible Shipping in Configuration tab
* Fix : pb with special characters in adress fields

= 1.6.2, November 28, 2019 =
* Check : compatibility with WooCommerce 3.8.1
* Fix : Incident with too many expedition methods (more than 50)
* Fix : Incident with shipping method names (indexOf not precise enough)

= 1.6.1, October 09, 2019 =
* Fix : the calculator on cart page dissapear if there is no expedition method available

= 1.6.0, October 09, 2019 =
* Add : Visual changes for the BackOffice
* Check : compatibility with WooCommerce 3.7.1 and 3.8.0 based on the bêta version
* Fix : pb with labels in 10*15
* Fix : pb with double expedition creation (double clic on link, same order opened in two different tabs, ...)

= 1.5.2, August 12, 2019 =
* Check : compatibility with WooCommerce 3.7.0
* Fix : pb with phone numbers outside of France

= 1.5.1, July 3, 2019 =
* Add : creation of two Hooks during the expedition creation process
* Check : compatibility with WooCommerce 3.6.5
* Fix : pb with tracking of the expeditions (lang code)

= 1.4.8, May 28, 2019 =
* Check : compatibility with WooCommerce 3.6.4
* Check : compatibility with WordPress 5.2.2

= 1.4.7, May 17, 2019 =
* Check : compatibility with WooCommerce 3.6.3
* Fix : pb with "°" in adress fields

= 1.4.6, April 25, 2019 =
* Check : compatibility with WooCommerce 3.6.2
* Fix : pb with "^" in adress fields
* Fix : pb if adress fields are more than 32 characters
* Fix : Warnings on front if no Expedition Methods at all in WooCommerce

= 1.4.5, April 18, 2019 =
* Check : compatibility with WooCommerce 3.6.1

= 1.4.4, April 17, 2019 =
* Check : compatibility with WooCommerce 3.6.0
* Fix : minification of JS file

= 1.4.3, April 16, 2019 =
* Check : compatibility with WooCommerce 3.5.8
* Fix : pb with Parcel Shop Pop Up not showing correctly

= 1.4.2, Mars 20, 2019 =
* Check : compatibility with WooCommerce 3.5.7
* Fix : compatibility notice can now be dismissed

= 1.4.1, Mars 8, 2019 =
* Add : compatibility with WooCommerce Table Rate Shipping Plugin
* Check : compatibility with WooCommerce 3.5.6
* Fix : pb with "é" in enterprise field for security key calculation

= 1.4, Feb 21, 2019 =
* Add : compatibility with Flexible Shipping plugin
* Add : compatibility with Border Elements Table Rate Shipping Plugin
* Add : compatibility with Tree Table Rate Plugin
* Add : message for error 92
* Check : compatibility with WooCommerce 3.5.5
* Fix : pb with @ in enterprise field
* Fix : pb with instruction field

= 1.3.3, Jan 23, 2019 =
* Fix: compatibility with Weight Based Shipping plugin
* Fix: compatibility with Jem Table Rate Shipping Plugin
* Check : compatibility with WooCommerce 3.5.4 and WordPress 5.0.3
* Fix : pb if shipping methods are set by two different administrators
* Fix : pb with auto update

= 1.3.1, December 5, 2018 =
* Fix: compatibility with PayLine module
* Check : compatibility with WooCommerce 3.5.3 ans WordPress 5.0.2

= 1.2, December 5, 2018 =
* Fix: Parse error in class-MRWP-public.php solved


= 1.1, December 3, 2018 =
* Fix: CRLF characters removed to call the Mondial Relay API
* New: Added the automatic update function with Easy Digital Download.
* New: Added the license key management function.

= 1.0, October 1, 2018 =
* Initial version of the plugin