magmodules / magento2-hyva-distance-based-shipping

magmodules/magento2-hyva-distance-based-shipping

Hyvä Themes Compatibility module for Magmodules DistanceBasedShipping

magento2-module Compatibility: Not yet tested Code Quality: Fail Tests: N/A Security: Pass OSL-3.0, AFL-3.0

header-git

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

  1. Install the module using composer:
composer require magmodules/magento2-distanceshipping-hyva
  1. Enable the module:
bin/magento module:enable Magmodules_HyvaDistanceBasedShipping
  1. Upgrade the database:
bin/magento setup:upgrade
  1. Let Hyvä know about the new module:
php bin/magento hyva:config:generate
  1. 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ä Google Reviews

Magento 2 Hyvä Shopreview

Magento 2 Hyvä Product Review Reminder

Magento 2 Hyvä eKomi Reviews

Magento 2 Hyvä FeedbackCompany Reviews

Magento 2 Hyvä Mollie

Magento 2 Hyvä Paazl

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
1.0.0 stable Pass Not yet tested Details 2024-05-15 06:47:06

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.

Compatibility matrix (Magento × PHP)
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.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 6 6 warnings (ruleset: Magento2) — 6 auto-fixable with phpcbf
PHPMD Pass 0
Cpd Pass 0
Composer validate Info 3 valid; 3 advisory notes (composer validate --strict)

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.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Error Error
2.4.8 Error Error
2.4.9 Error Error

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

Unit tests results by Magento and PHP version
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

Integration tests results by Magento and PHP version
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.

Security results
Tool Status Findings Summary
Composer audit N/A 0 no resolvable dependency tree to audit — Your requirements could not be resolved to an installable set of packages. Problem 1
Malware scan Pass 0
License
OSL-3.0, AFL-3.0

More from magmodules

View vendor
Make it pay

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.