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. Extra Fee Applied on Orders in Frontend
  4. Extra Fee Details in Backend

 

  1. Extension Installation
  • For Magento Marketplace Customers
  • Create a folder structure in Magento root as app/code/Meetanshi/ExtraFee
  • Download and extract the zip folder and upload our extension files to the app/code/Meetanshi/ExtraFee via FTP.
  • Login to your SSH and run the 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

 

  • 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. i.e:

Fixed Amount Fee

Percentage Fee

Type = Fixed Amount       

Type = Percentage of Product Price

Amount = 10

Amount = 10

Product Price = 500

Product Price = 500

Insurance Fee = 10

Insurance Fee = 50

Order subtotal = 510

Order subtotal = 550

 


 

  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.

  • Extra Fee on the Checkout page
    You can see the extra fee(s) is calculated, applied and displayed on the checkout page.

 

  • Extra Fee Details in My Account Section
    Extra fee(s) 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) is also seen in the customer’s registered Email as shown below.

  1.  Extra Fee Details in Backend
    Apart from the frontend, the Extra Fee(s) 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.

 

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