Chat on WhatsApp

Extra Fee & Surcharge for Magento 2 Checkout

Add configurable extra fees and surcharges to your Magento 2 checkout - payment method fees, small order fees, customer group surcharges, country-based fees, product-specific handling charges, and more. Each fee shows as its own line item in cart, checkout, order view, invoice...

Magento 2.4.6–2.4.8 PHP 8.1–8.4 Hyva + Luma Ready Free

Key Features:

  • Rule-Based Fee Engine
  • 4 Calculation Types
  • 3 Apply Modes
  • 11 Condition Types

Additional Services

$0.00
In stock
SKU
panth-extra-fee
Links
Pay with Wise
Lifetime Updates Every Magento release
1-Year Free Support Email + WhatsApp
Adobe-Certified Magento 2 Developer
Free Forever No subscription, no upsell
What you get

Everything in the box

Built-in from day one. No add-ons, no upsell, no licence keys to renew.

Rule-Based Fee Engine

create unlimited fee rules with conditions and priorities

4 Calculation Types

Fixed, Percentage, Combined (Fixed + Percent), Percentage with Fixed Minimum

3 Apply Modes

Per Order, Per Product (unique line items), Per Quantity (per unit)

11 Condition Types

store, website, date, customer group, payment method, country, subtotal, quantity, product IDs, product SKUs, category IDs

Overview

Panth Extra Fee is a configurable surcharge and fee extension for Magento 2 and Adobe Commerce that adds payment, small-order, country, customer-group, and product-specific fees to checkout as separate line items.

A rule engine with 11 condition types and 4 calculation methods covers cash-on-delivery surcharges, small-order penalties, country-based handling charges, customer-group discounts, and per-product fees. Each fee renders as its own row in cart totals, checkout, order view, invoices, credit memos, and order emails, so customers see a transparent breakdown and finance teams get an auditable trail.

The admin grid filters by type, status, and amount, while the rule editor includes product and category browse popups, schedule controls, and per-rule tax settings. An order-fees tracking view links every charge to its order with invoiced and refunded totals, and a per-item Extra Fee column appears in the Items Ordered table.

Compatible with Hyvä and Luma themes on Magento 2.4.4–2.4.9 with PHP 8.1–8.4, the Panth Extra Fee module ships full tax and refund support out of the box and is MEQP-compliant.

Best for:

  • Magento 2 merchants losing margin on small orders, cash-on-delivery, or international shipping.
  • B2B and wholesale stores that need customer-group-specific surcharges or discounts.
  • Catalogs that charge per-product handling fees and need each fee invoiced and refundable separately.

What you get

Panth Extra Fee gives Magento 2 store owners complete control over surcharges:

  • Rule engine with 11 condition types and 4 calculation methods.
  • Payment method, small-order, country, customer-group, and per-product fee rules.
  • Separate line items in cart, checkout, order, invoice, credit memo, and emails.
  • Admin grid with filters plus rule editor with product and category browse popups.
  • Full tax and refund support, per-rule scheduling, and per-item Extra Fee column.
  • Hyvä and Luma compatible on Magento 2.4.4–2.4.9 with PHP 8.1–8.4.

Panth Extra Fee — Configurable Extra Fees & Surcharges for Magento 2

Add configurable extra fees and surcharges to your Magento 2 checkout — payment method fees, small order fees, customer group surcharges, country-based fees, product-specific handling charges, and more. Each fee shows as its own line item in cart, checkout, order view, invoices, credit memos, and emails. Full tax and refund support built in.

Stop losing margin on small orders, COD payments, and international shipping. Panth Extra Fee gives store owners complete control over additional charges with a powerful rule engine, 11 condition types, 4 calculation methods, and a clean admin UI with product/category browse popups.

Preview

Fee Rules Management

Fee Rules Grid

Manage all your fee rules from a single grid — filter by type, status, amount, and more.

Fee Rule Editor with Product & Category Browse

Fee Rule Edit Form

Full rule editor with conditions, product/category browse popups, schedule, and tax settings.

Admin Configuration

Admin Configuration

Granular control: display settings, small order fee, tax display, fee breakdown, and advanced options.

Order Fees Tracking

Order Fees Grid

Track every fee charged — linked to orders with amounts, tax, invoiced, and refunded totals.

Admin Order View — Fee Breakdown

Admin Order Totals

Individual fee lines in Order Totals with per-item Extra Fee column in Items Ordered table.

Customer Order View — Frontend

Customer Order View

Customers see fee breakdown in their My Orders page — fully transparent.

Cart Page — Fee Line Items

Cart Page Fees

Each fee shows as its own row in cart totals — works on both Hyva and Luma themes.

Luma Checkout — Fee in Order Summary

Luma Checkout Fees

Fee lines visible in checkout order summary — updates dynamically based on payment method and address.


Key Features

  • Rule-Based Fee Engine — create unlimited fee rules with conditions and priorities
  • 4 Calculation Types — Fixed, Percentage, Combined (Fixed + Percent), Percentage with Fixed Minimum
  • 3 Apply Modes — Per Order, Per Product (unique line items), Per Quantity (per unit)
  • 11 Condition Types — store, website, date, customer group, payment method, country, subtotal, quantity, product IDs, product SKUs, category IDs
  • Individual Fee Line Items — each fee shows as its own row in cart/checkout/order (not lumped together)
  • Browse Products & Categories Popup — visual product/category chooser with search, select all, and selected items preview
  • Tax on Fees — assign tax class to any fee, 3 display modes (Excl/Incl/Both)
  • Full Invoice & Credit Memo Support — fees carry to invoices and are refundable
  • Small Order Fee — config-based fee for orders below minimum with customer-facing message
  • Admin Order Control — toggle "Apply Fees to Admin Orders" (default: No)
  • Order Fees Grid — dedicated admin grid tracking all fees with order links, export support
  • Per-Item Fee Column — "Extra Fee" column in admin order Items Ordered table
  • Sales Order Grid Column — optional Extra Fee column in the main order grid
  • Multi-Store & Multi-Website — per-store/website fee rules and configuration
  • Stop Further Rules — priority-based rule processing with stop flag
  • Fee Breakdown or Aggregated — show individual fee names or single "Additional Fees" total
  • Email Integration — fees in order confirmation, invoice, and credit memo emails
  • Hyva + Luma Compatible — works on both themes, cart and checkout
  • 8 Sample Fee Rules — install via CLI for quick testing
  • MEQP Compliant — no ObjectManager, strict types, clean DI
  • Zero Frontend Performance Impact — all calculation server-side

Fee Calculation Types

Type Description Example
Fixed Amount Flat fee regardless of order value $5.00 handling fee
Percentage of Subtotal Percentage of cart subtotal 2.5% payment processing fee
Fixed + Percentage Both components added together $2.00 + 1% COD fee
Percentage with Fixed Minimum Percentage calculation with a guaranteed minimum Max(1.5%, $10) bulk processing

Apply Modes

Mode Description Example
Per Order Fee applied once per order $15 international surcharge
Per Product Fee per unique line item matching conditions $3 per premium product
Per Quantity Fee per unit ordered $0.50 per unit handling

Condition Types

Every rule can combine multiple conditions — all must match for the fee to apply:

Condition Description
Store Views Apply to specific store views
Websites Apply to specific websites
Date Range Active only between From/To dates
Customer Groups General, Wholesale, Retailer, etc.
Payment Methods COD, Bank Transfer, Check/Money Order, etc.
Countries Billing/shipping country filter
Min/Max Order Subtotal Order value range
Min/Max Order Qty Item quantity range
Product IDs Specific products (with browse popup)
Category IDs Specific categories (with browse popup)
Stop Further Rules Skip remaining rules after this one matches

Fee Rules

Navigate to Panth Infotech > Extra Fee > Fee Rules.

Creating a Fee Rule

  1. Click Add New Fee Rule
  2. General Settings: Name, description, active status, sort order, stop further rules
  3. Fee Calculation: Label, type (fixed/percent/combined/min), amount, apply per (order/product/qty), min/max caps
  4. Tax Settings: Tax class, refundable toggle
  5. Conditions: Store views, websites, customer groups, payment methods, countries, subtotal/qty ranges
  6. Product & Category Selection: Browse popup with search, select all, preview table
  7. Schedule: Optional from/to dates
  8. Click Save

Product & Category Browse Popup

The rule editor includes "Browse Products..." and "Browse Categories..." buttons that open full-featured popup dialogs:

  • Product popup: Searchable grid with ID, name, SKU, type, price. Checkbox selection with "Select All" and pills preview.
  • Category popup: Expandable category tree with checkboxes and level indicators.
  • Selected items table: Shows selected products/categories below the field with Edit/View/Remove actions.

How It Works

Checkout Flow

  1. Customer adds products to cart
  2. Quote total collector runs fee calculation engine
  3. Engine loads active rules ordered by sort_order
  4. For each rule: validates all 11 conditions against the quote
  5. Matching rules: calculates fee based on type and apply mode
  6. Applies min/max fee constraints and global maximum cap
  7. Each fee saved to panth_extra_fee_quote table
  8. Individual fee segments returned to cart/checkout for display
  9. On order placement: observer transfers quote fees to panth_extra_fee_order
  10. Fees carry through to invoices, credit memos, and emails

Admin Order Flow

  • By default, admin-created orders skip all extra fees
  • Toggle "Apply Fees to Admin Orders" to enable
  • All fee rules apply identically to frontend orders when enabled

Where Fees Display

Location Individual Lines Aggregated
Hyva Cart Page Each fee as separate row Single "Additional Fees" row
Luma Cart Page Each fee as separate row Single row
Luma Checkout Summary Each fee with label Single row
Admin Order View — Order Totals Each fee labeled Configurable
Admin Order View — Items Ordered Per-item "Extra Fee" column
Customer My Orders Each fee in totals Configurable
Order Confirmation Email Fee breakdown Configurable
Invoice & Credit Memo Fee lines Configurable
Sales Order Grid Total extra fee column Single column

Order Fees Grid

Navigate to Panth Infotech > Extra Fee > Order Fees.

Tracks every fee charged with:

Column Description
ID Auto-increment record ID
Order # Clickable link to order (opens in new tab)
Fee Label Rule name shown to customer
Fee Type Fixed, Percent, Combined, etc.
Fee Amount (Base/Store) Charged amount
Tax (Base/Store) Tax calculated on fee
Fee Invoiced (Base) Amount invoiced
Fee Refunded (Base) Amount refunded
Created At Timestamp

Supports CSV export for accounting.


Sample Data

The CLI command creates 8 production-realistic fee rules:

Rule Type Amount Condition
Payment Processing Fee 2.5% Per order COD, Bank Transfer
Small Order Handling Fee $5 fixed Per order Subtotal < $30
International Shipping Surcharge $15 fixed Per order IN, BR, MX, JP, CN
Bulk Order Processing $10 min / 1.5% Per order 10+ items, Wholesale group
Premium Product Handling $3 fixed Per product Specific categories
COD Processing Fee $2 + 1% Per order Cash on Delivery
Express Weekend Processing $7.50 fixed Per order Disabled by default
Order Insurance Fee 0.5% Per order Subtotal > $500

Install: bin/magento panth:extrafee:install-sample-data


Troubleshooting

Issue Solution
Fees not showing in cart Check: module enabled, rules active, conditions match your cart
Fee shows in total but no line item Clear cache, flush static content, hard-refresh browser
Fees not saved to order Run setup:di:compile — observer needs compilation
Payment method fee showing without selection Update to latest — fixed (skips when no method selected)
Admin order creation shows fees Set "Apply Fees to Admin Orders" to No in config
Browse Products popup empty Run setup:di:compile && cache:flush
Fee amounts wrong Check rule priority (sort_order) and "Stop Further Rules" settings
Fees not in emails Check Display Settings > Show in Order Emails = Yes

Compatibility

Requirement Versions Supported
Magento Open Source 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.4 — 2.4.8
PHP 8.1, 8.2, 8.3, 8.4
Hyva Theme 1.0+ (fully compatible)
Luma Theme Native support
Panth Core ^1.0 (installed automatically)

Installation

Composer (Recommended)

composer require mage2kishan/module-extra-fee
bin/magento module:enable Panth_Core Panth_ExtraFee
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

Install Sample Data (Optional)

bin/magento panth:extrafee:install-sample-data

Creates 8 ready-to-use fee rules for testing.

Verify

bin/magento module:status Panth_ExtraFee
# Module is enabled

Configuration

Navigate to Stores > Configuration > Panth Extensions > Extra Fee.

General Settings

Setting Default Description
Enable Extra Fee Yes Master toggle
Apply Fees to Admin Orders No Skip fees when admin creates orders from backend
Fee Display Title Additional Fees Heading shown above fee lines in totals

Display Settings

Setting Default Description
Show in Cart Yes Display fees on cart page
Show in Checkout Yes Display fees in checkout summary
Show in Order View Yes Display in customer My Orders
Show in Invoice Yes Include in invoice totals
Show in Credit Memo Yes Include in credit memo totals
Show in Order Emails Yes Include in transactional emails
Show in Order Grid No Add Extra Fee column to sales order grid
Tax Display Type Excluding Tax Excl Tax / Incl Tax / Both
Show Fee Breakdown Yes Individual fee lines vs single total
Show Zero Amount Fees No Show fees with $0.00 amount

Small Order Fee

Setting Default Description
Enable Small Order Fee No Charge fee for orders below minimum
Minimum Order Amount 50 Threshold amount
Fee Type Fixed Fixed or Percentage
Fee Amount 5 Fee amount or percentage
Fee Label Small Order Fee Label shown to customer
Tax Class None Tax class for the fee
Message Template Orders below %1... Customer-facing message

Advanced

Setting Default Description
Apply Fees After Discount No Calculate on subtotal before or after discounts
Maximum Total Fee Per Order (empty) Safety cap on total fees
Exclude Virtual Products No Skip virtual/downloadable products in calculations
Debug Mode No Log fee calculations to var/log/panth_extra_fee.log

License

Proprietary — see LICENSE.txt. One license per Magento production installation.


More Information
Module Category Cart & Checkout
Best For All Sizes

Need this customised?

Talk to Kishan directly — written quote, scope and timeline within 24 hours. No sales call.

WhatsApp

Extra Fee & Surcharge for Magento 2 Checkout

$0.00
Step up

Customers usually upgrade to