All modulesMagento 2 moduleVersion 1.1.3 · 15 Oct 2026

Cash-on-delivery with surcharge

The cash-on-delivery fee shows as its own line among the totals, so the customer sees it and you are not paying it out of your own pocket.

€120 + VAT · one-off licence, no subscription

www.degriz.eu
Cash on delivery fee as a separate line in the order summary
About the module

What it does.

"The post office charges me a fee for cash on delivery, and the customer does not pay it." A cost nobody covers eats into your margin on every such order.

What it looks like in practice

At checkout the customer chooses cash on delivery. A separate line appears among the totals with the text you chose, for example 'Cash on delivery fee', and the grand total already includes it. The customer sees what they will pay, so there are no surprises at the door. The same line is carried to the order, the invoice and the credit memo.

What changes

  • Surcharge by payment method. You set an amount for each payment method, for example cash on delivery; the rules work for any payment method.
  • Fixed amount or percentage. Give the amount as a fixed figure or as a percentage of the order subtotal.
  • A separate line. The surcharge shows among the totals in the cart and checkout and is carried to the order, invoice and credit memo.
  • VAT by your rules. Choose a tax class, or add the amount without VAT.

Who it is for

For stores that offer cash on delivery and are charged an extra fee for it by the post or courier. It is also useful if you want to cover the cost of any other payment method with a surcharge.

How you set it up

Under Stores › Configuration › Magelan › Payment surcharge you enter the text the customer sees (for example 'Cash on delivery fee') and the rules in the form 'payment method code|amount' (for example cashondelivery|0.98 or cashondelivery|2%), one per line. Settings can be set for each store view separately.

Good to know

  • The module is off by default and has no rules.
  • The amount is fixed or a percentage, not tiered by cart value.
  • It works in the Luma and FireCheckout checkouts. How it displays in the Hyvä cart and Hyvä Checkout has not been tested.

Want it in your store?

Buy the module and we install it for you: free of charge for existing Degriz customers, by time spent for others. Building a new store? Add it to your project in the Konfigurator.

Screens

Take a look at every step.

www.degriz.eu
When the customer picks cash on delivery, the surcharge is added automatically as a line in the order totals
When the customer picks cash on delivery, the surcharge is added automatically as a line in the order totals
www.degriz.eu
You set the surcharge per payment method, as an amount or a percentage
You set the surcharge per payment method, as an amount or a percentage
User guide

See how it works, step by step.

Our guide centre shows the settings and the everyday work with this module, with real screenshots.

Installation

How to install it.

We deliver the module from our own repository, installed with Composer. We send you the user name and access key for the repository after purchase. If you prefer, we install and set it up for you.

In the root of the Magento 2 store run the commands (replace UPORABNIK and DOSTOPNI_KLJUC with the user name and access key you received):

composer config repositories.degriz composer https://www.degriz.net/konfigurator/composer/packages/composer config --auth http-basic.www.degriz.net UPORABNIK DOSTOPNI_KLJUCcomposer require degriznet/m2_paymentfeephp bin/magento module:enable Magelan_PaymentFeephp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy -fphp bin/magento cache:flush

Where do I get the user name and the access key?

After the purchase we send you the access key by e-mail. Keep it safe: for security it is shown only once and we do not keep it in readable form. The user name (your project code) and all the commands, ready to copy, are in your account under My account > Module licences.

Lost the key? Write to us and we will issue a new one; the old one stops working. [email protected]

Technical details

Compatibility.

Just the facts.

Code
degriz_codsurcharge
Platform
Magento 2
Licence
One-off
Change log

Version 1.1.1 · 11 Oct 2026

  • VAT on the surcharge: set a tax class and the surcharge is split into net and VAT and shown correctly in the tax totals.
  • VAT is also correct on the invoice and credit memo.
  • The surcharge is a line of its own in the cart sent to PayPal.
  • New Amounts include tax setting: when off, the rule amount is net and VAT is added on top, which is needed for a store view in another country.
  • The module settings now sit in the Magelan tab.

Version 1.0.3 · 5 Oct 2026

  • No surcharge on an add-on order that ships in the parcel of an already charged order (one delivery, one fee).

Version 1.0.2 · 5 Oct 2026

  • The surcharge is stored on the order, so it also shows on the invoice, credit memo and emails and is returned on refund.
  • The surcharge is a line of its own in the cart and checkout summary.
  • A surcharge line is also in the order, invoice and credit memo emails and in the PDF invoice, with the label from the settings.
  • Fixed an error that stopped PDF documents from printing.

Version 1.0.1 · 21 Sep 2026

  • Corrected the Slovenian translation of the rules description.

Version 1.0.0 · 6 Aug 2026

  • First release: a surcharge tied to the payment method (for example cash on delivery fee), as a fixed amount or a percentage, set per store view.
  • It is carried to the order, invoice and credit memo.
After purchase

You are not left alone.

We develop and maintain the module ourselves, so you write to the people who know it line by line.

Installation

For existing Degriz customers we install the module free of charge. For other buyers we charge the installation by time spent.

Support

A bug that repeats on a clean Magento with the Luma theme we fix free of charge. Settings, customisations and other themes by time spent.

Updates

The licence includes updates for the Magento versions on the supported list.

We agree on a date after reviewing the request. User guides in the guide centre

Cash-on-delivery with surcharge

€120 + VAT

One-off licence for one production installation of Magento, no subscription.

Write to us

For existing Degriz customers we install the module free of charge, for others by time spent. We agree on a date after reviewing the request.

Anže Voh, Degriz

Questions about this module?

Write to us and we will answer personally.

[email protected] · 040 807 231

Cash-on-delivery with surcharge€120 + VATAdd to cart

Online store configurator

Redesigning your store or building a new one?

Put your own quote together in the configurator and see the price straight away. A few minutes, no obligation, no meeting needed.

  • Price straight away
  • No obligation
  • Straight to the developer
Open the configurator

Free and with no obligation