=== MPH WMS for WooCommerce ===
Contributors: mphvision
Tags: shipping, pickup points, warehouse, rates, checkout
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Live shipping rates and pickup points from MPH WMS in the WooCommerce checkout.

== Description ==

MPH WMS decides what shipping costs, which methods a customer sees and which pickup points are offered. This plugin brings that into the WooCommerce checkout:

* A shipping method, "MPH WMS", that you add to your shipping zones.
* One rate per pickup point, so the customer picks a point by picking a rate. Works in the classic and the block checkout.
* The chosen rate and pickup point are saved on the order, so MPH WMS knows which shipping method and pickup point to book when it imports the order.

There is nothing to type in. MPH WMS connects the store through the WooCommerce REST API when you press Register under Checkout rates on the connection's Shipping tab.

If MPH WMS cannot be reached (within 8 seconds), the method offers no rates and the error is shown under WooCommerce > Settings > Shipping > MPH WMS. Keep a flat rate in each zone as a backup.

= PHP version =

This plugin needs PHP 8.2 or newer. On 2026-10-21 PHP released fixes for two critical remote code execution flaws (CVE-2026-109618 and CVE-2026-109619). The fixed releases are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The plugin adds a Site Health test (Tools > Site Health) that reports a server below those releases as critical.

== Installation ==

1. Upload the zip under Plugins > Add New > Upload Plugin, and activate it. WooCommerce must be active.
2. In MPH WMS, open the WooCommerce connection, go to its Shipping tab and press Register under Checkout rates.
3. Under WooCommerce > Settings > Shipping, add the "MPH WMS" method to each zone that should offer the WMS rates. Keep a flat rate in the zone as a backup.

== Frequently Asked Questions ==

= Are the prices with or without VAT? =

By default the WMS prices are what the customer pays, VAT included. The plugin hands WooCommerce the price without VAT and WooCommerce adds the shipping tax back, so the checkout shows the WMS price and the order books the VAT correctly. Turn off "Prices from the WMS include VAT" under WooCommerce > Settings > Shipping > MPH WMS if your WMS prices are entered without VAT.

= What does the store send to MPH WMS? =

For each cart: the shipping country, postcode, city and company, the currency, and per line the SKU, quantity, unit price, weight and product id. No names, email addresses or street addresses.

== Changelog ==

= 1.0.0 =
* First release: checkout rates and pickup points from MPH WMS, Site Health test for the October 2026 PHP security fixes.
