mageplaza / module-multi-flat-rates

mageplaza/module-multi-flat-rates

Magento 2 Multi Flat Rates extension

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass proprietary

Are you the maintainer of mageplaza?

Packagento pulls mageplaza's Composer packages from the public registry so buyers can find them here.

Claim the namespace to take ownership, publish new releases directly, and start charging for premium versions.

Claim this namespace →

Magento 2 Multiple Flat Rates Shipping extension

Native Magento 2 only supports one flat rate shipping which can lead to difficulty for stores in defining the best price for delivering products to customers in different countries.

Magento 2 Multiple flat rate shipping is a must have for many online stores, especially international brands which deliver their products worldwide. Offering buyers different flat rates to select makes shopping easier and convenient for customers. Besides, this also helps stores manage shipping methods better.

Latest Stable Version
Total Downloads

1. Flat Rates Shipping Documentation

2. FAQs

3. How to install Magento 2 Multi Flat Rates Shipping extension

Install via composer (recommend)

Run the following command in Magento 2 root folder:

With Marketing Automation (recommend):

composer require mageplaza/module-multi-flat-rates mageplaza/module-smtp
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Without Marketing Automation:

composer require mageplaza/module-multi-flat-rates
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

4. Multiple Flat Rates Shipping features

5 multiple flat rate shipping

Magento 2 Multi flat rate shipping extension allows store admins to add up to 5 other shipping rates. Admins are free to give a shipping flat rate a name and/or a title to help buyers distinguish it with others on Cart page and Checkout page.

Each flat rate can be turned on/off easily on the backend. A set of configuration options for price, sort order, applicable countries, and error message are also ready to be selected.

Sort multi flat rates neatly

As a store may want to have more than only one flat rate shipping, Multiple Flat Rates Shipping should be in a certain order. Admins can choose this order by sorting every shipping rate on the backend.

Multi flat rate visibility

Each flat rate shipping can be applied on a restricted number of countries or all allowed countries depending on the settings on backend.

Admins can multiple select countries to allow buyers in those countries to choose a specific shipping flat rate.

Error message

Buyers who are not in applicable countries will not be allowed to select that shipping flat rate. In this case, admins can set an error message to inform buyers. This message can be enabled/disabled and changed easily on the backend.

Compatible with One Step Checkout

Magento 2 Multi Flat Rates Shipping extension is amazingly compatible with Mageplaza One Step Checkout which delivers the best shopping experience for your customers.

5. How to configure multiple flat rate shipping on Magento 2

From your Magento admin panel, follow this route: Stores > Settings > Configuration > Sales > Shipping methods. Then, click on Flat rate #1 - Flat rate #5 to configure these 5 shipping rates.

Magento 2 Multiple Flat Rates Shipping

Configure flat rate shipping #1

Magento 2 Multiple Flat Rates Shipping module

  • Enable: Select Yes to run Flat Rate #1
  • Method Name: This is the name the flat rate #1 that is displayed on the View cart page and the Checkout page. If you leave this field blank, the rate will have no name on these two pages.
  • Price: This is the shipping fee of Flat Rate #1 which is displayed on the frontend. If you leave this field blank, the price will be automatically set $0.00 as default.
  • Sort Order: This is the order of Flat Rate #1 on the flat rates list displayed on the frontend. For example: If Sort Order = 1 is set for Flat Rate #1 while Sort Order = 2 is set for Flat Rate #2, Flat Rate #1 will stand above Flat Rate #2 on the frontend.

Magento 2 Multiple Flat Rates Shipping extension

  • Title: This is the title of the flat rate which is displayed on the Cart page and Checkout page. If you leave this field blank, no title is displayed.

Configure Multiple Flat Rates Shipping for Magento 2

  • Ship to Applicable Countries:
    • Select All Allowed Countries to apply the rate on all available countries.
    • Select Specific Countries to apply the rate on the countries which are selected on the field Ship to Specific Countries.

Configure Magento 2 Multiple Flat Rates Shipping

  • Ship to Specific Countries: Select one or several countries which the rate is applied for.
  • Display Error Message: Enter an error message which is displayed to buyers when the rate is not available. If you leave this box blank, the default message will be displayed: Sorry, but we can’t deliver to the destination country with this shipping module. This error message is displayed only when Show Method if Not Applicable = Yes
  • Show Method if Not Applicable: Select Yes to display all shipping methods even when they do not belong to any applicable countries.

Similarly, admins can add up to 5 shipping methods and configure them for their online store.

Mageplaza Multiple Flat Rates Shipping

Magento 2 Multi Flat Rates Shipping

People alse search:

  • magento 2 multiple flat rate shipping
  • magento 2 flat rate shipping
  • flat rate magento 2
  • magento 2 multiple shipping methods
  • magento 2 multiple flat rate shipping free
  • magento 2 shipping rates per product extension
  • magento 2 shipping per product per country extension
  • magento 2 product shipping rates per country extension

Other free extension on Github

Get more Magento 2 extension on Marketplace:

Versions
Version Stability QA Status Compatibility Released
1.1.2 stable Not tested Not yet tested Details 2021-09-20 08:10:43
4.0.1 stable Fail Magento 2.4.7-2.4.9 Details 2021-09-20 08:10:12
4.0.0 stable Not tested Not yet tested Details 2021-03-23 09:59:54
1.1.1 stable Not tested Not yet tested Details 2020-02-19 08:37:58
1.1.0 stable Not tested Not yet tested Details 2019-07-25 03:28:55
1.0.0 stable Not tested Not yet tested Details 2018-10-18 03:31:21

No dependencies declared

This package's composer.json doesn't declare any required, suggested, replaced, or conflicting packages.

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 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

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 16 16 warnings (ruleset: Magento2) — 12 auto-fixable with phpcbf
PHPMD Warning 2 2 rule violations (IfStatementAssignment:2)
Cpd Pass 0
Composer validate Warning 1 valid with 1 warning (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.

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

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 Pass 0
Malware scan Pass 0
License
proprietary
Authors

More from mageplaza

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.