magmodules / magento2-hyva-distance-based-shipping
magmodules/magento2-hyva-distance-based-shipping
Hyvä Themes Compatibility module for Magmodules DistanceBasedShipping
Shipping Costs Based on Distance Hyvä Compatibility plugin
Calculate the exact shipping costs based on the distance to the delivery address using the Google Maps API.
About the Shipping Costs Based on Distance Plugin
Introducing our Magento 2 extension for automated shipping cost calculation based on distance. Utilizing the Google Maps API, it calculates actual transport route distances, ensuring accurate shipping costs. Easily configurable, set your per kilometer rate and display costs on the checkout page.
Enhance customer convenience with a shipping cost calculator on the product page. Requires an active Google API Key. Ideal for both in-house and external courier deliveries, it provides full control over shipping cost settings. Flexible options allow customization to your preferences, including address entry, distance units, calculation methods, and error handling. Global coverage with country-specific settings available. Experience unmatched flexibility with tailored shipping rates based on distance and order values.
Overall, the Shipping Costs Based on Distance plugin for Magento, with its seamless compatibility with the Magento Hyva theme, provides an excellent solution for integrating the Shipping Costs Based on Distance shipping method into your Magento store.
Installation
- Install the module using composer:
composer require magmodules/magento2-distanceshipping-hyva
- Enable the module:
bin/magento module:enable Magmodules_HyvaDistanceBasedShipping
- Upgrade the database:
bin/magento setup:upgrade
- Let Hyvä know about the new module:
php bin/magento hyva:config:generate
- Generate the CSS files:
npm --prefix vendor/hyva-themes/magento2-default-theme/web/tailwind/ run ci
npm --prefix vendor/hyva-themes/magento2-default-theme/web/tailwind/ run build-prod
Or from your theme:
npm --prefix app/design/frontend/<Vendor>/<Theme>/web/tailwind run ci
npm --prefix app/design/frontend/<Vendor>/<Theme>/web/tailwind run build-prod
Shipping Costs Based on Distance Magento plugin features
- Customize your store/warehouse location
- Select distances in kilometers or miles according to your preference
- Personalize your calculation methods
- Blend per kilometer pricing with fixed rates
- Define maximum delivery ranges
- Automated address verification with error alerts for unrecognized addresses
Magento Support
If you have any questions, please fill out our secure contact form by clicking here.
Magmodules & Hyva
Magmodules and Hyva have established a strong partnership, working closely together to provide enhanced e-commerce solutions. As an official Hyva partner, we specializes in developing integrations for various platforms and services.
We have created integrations for well-known providers such as Mollie, Sooqr, Paazl, and many more. This collaboration ensures seamless compatibility and optimized performance for online stores utilizing the Hyva theme. Through our partnership, Magmodules and Hyva strive to deliver comprehensive and tailored solutions to meet the diverse needs of e-commerce businesses.
Check out our other Hyva Plugins!
Magento 2 Hyvä Product Review Reminder
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
Requires 3
| Package | Constraint |
|---|---|
| magento/framework | * |
| hyva-themes/magento2-compat-module-fallback | * |
| magmodules/magento2-distance-based-shipping | * |
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | not tested | not tested | ||
| 2.4.8 | not tested | not tested | ||
| 2.4.9 | not tested | not tested |
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from magmodules
View vendorN/A
Hyvä Themes Compatibility module for Magmodules Shopreview
Hyvä Themes Compatibility module for Magmodules EkomiSR
MessageBird integration for Magento 2
Turn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.