Magento 2 Extra Fee

Magento 2 Extra Fee allows the store owners to add extra fees for the services like gift wrap, fast delivery, insurance, etc. on customers’ orders.

Table of Content

  1. Extension Installation
  2. Configuration
  3. Tax Settings
  4. Extra Fee Applied on Orders in Frontend
  5. Extra Fee Details in Backend

 

  1. Extension Installation
  • For Magento Marketplace Customers
    • Find the Composer name and version of the extension in the extension’s composer.json file.
      • Login to your SSH and run:
        • composer require meetanshi/magento-2-extra-fee
      • 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 installed properly, run the command:
        • php bin/magento module:status Meetanshi_ExtraFee
      • By default, the extension is probably disabled.
      • Enable the extension and clear static view files:
        • php bin/magento module:enable Meetanshi_ExtraFee --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

 

  1. Configuration
    To configure the extension, login to Magento 2 backend, move to Stores à Configuration à Meetanshi à Extra Fee where you can find various settings to configure the extension.
  • Extra Fee: Enable or disable Extra Fee extension from here.
  • Add Fees: Create as many extra fees as you want to charge customers’ orders.
    • Title: Set fee title to let customers know the fee charged.
    • Fee Type: Select the fee type to calculate and apply to the product price.
      • Fixed Amount: Fix extra fee amount will be added to the order subtotal.
      • Percentage of Product Price: Calculates and adds fee in percentage of the product price.
    • Fee Amount:  Enter the amount to charge the fee to be calculated according to the selection of Fee Type option.

 

  1. Tax Settings
    The extension facilitates to apply tax on the extra fee. Configure the tax settings from here.
  • Apply Tax on Extra Fees: Select YES to apply tax on extra fees you added.
  • Set Tax Class for Extra Fees: Select the tax class to apply the tax on extra fees.
  • Display Extra Fees: Select one of the options on how you want to display extra fees in the frontend.
    • Excluding Tax: Displays extra fee excluding tax.
    • Including Tax: Displays extra fee including tax.
    • Including and Excluding Tax: Displays extra fee both the including and excluding tax.

 

  1. Extra Fee Applied on Orders in Frontend
    Once you've set all the required configurations, you can see an extra fee extension enabled in the frontend.
  • Extra Fee on the Cart page
    After adding products to the cart, you can see the extra fee(s) is calculated, applied and displayed on the cart page. If tax is enabled on the extra fee, it is displayed based on the option you selected under the tax settings.

 

 

  • Extra Fee on the Checkout page
    You can see the extra fee(s) is calculated, applied and displayed on the checkout page. If tax is enabled on the extra fee, it is displayed based on the option you selected under the tax settings.


 

  • Extra Fee Details in My Account Section
    Extra fee(s) and tax details are displayed on the customer’s My Account section under the order view tab.

 

  • Extra Fee Details in Order Email
    Apart from the frontend and backend, the Extra Fee(s) and tax details are also seen in the order email to the customers.


 

  1. Extra Fee Details in Backend
    Apart from the frontend, the Extra Fee(s) and tax details can also be seen from the backend under Sales à Orders à Order View. In addition to the order view section in the backend, extra fee details can be seen in order invoice and credit memo section as well.

​​​​​​​​​​​​​​

 

 

​​​​​​​​​​​​​​