Magento 2 Multiple Flat Rate Shipping

Magento 2 Multiple Flat Rate Shipping allows the store owners to add up to 10 Flat Rates based on various Shipping Prices and Conditions.

 

Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. Multiple Flat Rate Shipping in Frontend
  4. Multiple Flat Rate Shipping in Backend

 

  1. Extension Installation

For Magento Marketplace Customers

Find the extension’s Composer name and version in its composer.json file.

  • Login to your SSH and run:
    • composer require meetanshi/module-flatshipping --ignore-platform-reqs
  • Enter your authentication keys. Your public key is your username; your private key is your password.
  • Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
  • To verify that the extension is installed properly, run the command:
    • php bin/magento module:status Meetanshi_Flatshipping
  • By default, the extension is probably disabled. Enable the extension and clear static view files:
    • php bin/magento module:enable Meetanshi_Flatshipping --clear-static-content
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
    • php bin/magento cache:flush

For Meetanshi Customers

  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
    • php bin/magento cache:flush
  • That’s it.

 

  1. Configuration
    For configuring the extension, log in to Magento 2, move to Stores > Configuration > Sales > Shipping Methods > Multiple Flat Rate Shipping where you can find various settings to enable the extension.
  • Enabled: Set “YES” to enable Multiple Flat Rate Shipping extension.
  • Method Name: Enter method name for the shipping method.
  • Title: Enter the title for the shipping method.
  • Type: Select the type based on to charge the flat rate.
  • Price: Enter shipping rate to charge.
  • Calculate Handling Fee: Select how you want to charge a handling fee on orders.
  • Handling Fee: Set rate for the handling fee.
  • Displayed error message: Set error message to show for unavailability of the shipping method.
  • Ship to applicable countries: Select all allowed countries to enable Multiple Flat Rate Shipping for
  • Ship to specific countries: Select countries to enable Multiple Flat Rate Shipping for.


 

  • Show Method if not Applicable: Set “Yes” to hide the method if not applicable.
  • Maximum Order Amount: Set a maximum order amount to enable this flat rate.
  • Minimum Order Amount: Set a minimum order amount to enable this flat rate.
  • Show method only for admin: Set “Yes” to enable Multiple Flat Rate Shipping for admin only.
  • Sort Order: Add sort order of the method


 

 

  1. Multiple Flat Rate Shipping in Frontend
    Once you have set multiple flat rates, you can see multiple flat rates enabled in the frontend. After adding products to cart, Multiple Flat Rate Shipping methods are seen on the cart page. Once it’s selected, it gets applied to order.
  • Multiple Flat Rate Shipping on Cart Page


  • Multiple Flat Rate Shipping on Checkout Page
    Multiple Flat Rate Shipping methods applied on order at the checkout page.


  • Multiple Flat Rate Shipping in “My Account” section
    Once the order is placed using the Multiple Flat Rate Shipping method, customers can see shipping details in their My Account section under “My Orders” tab.


 

  1. Multiple Flat Rate Shipping in Backend
    Apart from frontend, Multiple Flat Rate Shipping method details can also be seen in the backend under Sales > Orders.