Dahu Post
Solution de remplacement du module chronopost sur wordpress. Gardez votre contrat chronopost, mettez cette application, fini les bugs !
by Hugo Vial-Jaime · github.com/epilouptique/dahu-post · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/epilouptique/dahu-post/archive/refs/heads/main.zipReadme
Dahu Post
Dahu Post is a lightweight WooCommerce extension that calculates a "Flat rate" shipping cost dynamically from the real weight of the cart and the shipping classes assigned to your products, and lets store admins quickly add a pre-filled shipping line when creating orders manually.
Description
Many stores need a carrier flat-rate line (e.g. a courier service) whose price should still reflect the actual weight of the order, and sometimes a fixed price for specific product categories (shipping classes). Dahu Post replaces the static "Cost" field of a WooCommerce Flat Rate shipping method with a dynamic calculation:
- Products without a shipping class are billed according to a configurable weight-bracket pricing grid.
- One or more shipping classes can be configured to use a fixed price per unit instead of the weight grid.
- When a fixed-price product is combined with weight-priced products in the same cart, its weight is merged into the weight-based calculation instead of being billed separately, avoiding double charges.
- The same logic is available in the admin order screen, so shipping costs on manually created orders match what a customer would see at checkout — including composite/bundled products, where component line items are correctly excluded from the weight calculation.
Features
- Dynamic weight-based shipping cost, applied automatically at checkout on the Flat Rate shipping method.
- Configurable weight-bracket pricing grid, editable from the WordPress admin without touching any code.
- Fixed-price handling for one or more shipping classes, correctly merged with weight-based products when both are present in the same order.
- One-click button in the admin order screen to add a pre-filled, correctly priced shipping line to manually created orders.
- Compatible with WooCommerce Composite Products: bundled component line items are excluded from the shipping weight calculation.
- Works with WooCommerce HPOS (order tables) and the legacy post-based orders screen.
Installation
- Upload the plugin files to the
/wp-content/plugins/dahu-postdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the "Plugins" screen in WordPress.
- Make sure a WooCommerce shipping zone has a "Flat rate" method configured for the countries you want to cover.
- Go to WooCommerce > Shipping Grid to configure the weight-bracket pricing grid.
Configuration
- Shipping zone: configure a "Flat rate" method in the relevant WooCommerce shipping zone(s). Its base "Cost" field is not used by this plugin — the price is fully computed dynamically.
- Shipping classes: to give a shipping class a fixed price per unit, set the corresponding "Cost for shipping class" field on the Flat Rate method.
- Weight grid: go to WooCommerce > Shipping Grid to define weight brackets and their price (minimum weight exclusive, maximum weight inclusive).
- Allowed countries: the plugin only applies its dynamic calculation to a configurable list of countries; other destinations fall back to WooCommerce's default behavior.
Changelog
1.3.3
- Show the installed plugin version on the plugins list page, next to the "Settings" link.
1.3.2
- Composite/bundled kits are now always billed via their container line (fixed shipping-class price), regardless of each component's individual shipping configuration. Components attached to a kit are never counted separately, and virtual kit containers are correctly included in the calculation.
1.3.1
- Hide the internal "manual cost override" marker from the order line item meta display.
1.3.0
- Once the shipping cost of a managed line is edited manually in the admin order screen, the plugin stops recalculating it automatically for that line: the native "Recalculate" button then only recalculates taxes, as WooCommerce normally does.
1.2.4
- Live-read the customer's country from the order screen form fields, so the correct shipping zone/instance is used even before the order has been saved.
1.2.3
- Read the shipping cost live from the on-screen form instead of relying on data that has not yet been saved to the order.
1.2.2
- Fixed the shipping zone/method matching used to fetch fixed shipping-class costs on manually created orders.
1.2.1
- Correctly exclude bundled/composite product components from the weight-based calculation, using the assembled weight of the parent item.
1.2.0
- Live-read product quantities from the admin order screen DOM (instead of the database) so unsaved changes are reflected immediately.
- More robust interception of the native "Recalculate" button in the admin order screen.
1.1.0
- Correct handling of multiple units of a fixed-price shipping class.
- Automatic admin-side shipping cost calculation via AJAX.
1.0.0
- Initial release: configurable weight-bracket pricing grid, dynamic checkout calculation, quick-add shipping button in the admin order screen.
License
This plugin is licensed under the GPL v2 (or later). See the LICENSE file for details.