All modulesMagento 2 module

Cash-on-delivery weight limit

Above a weight you set, cash on delivery simply disappears. Heavy orders do not risk an expensive return.

€150 + VAT · one-off licence, installation optional

Cash-on-delivery weight limit
About the module

What it does.

“A heavy parcel not collected from the courier, and I pay for the return too.” For heavy orders delivery is expensive, and if the parcel is not collected you also carry the cost of the return.

What it looks like in practice

A customer puts several heavy bags into the cart. The total weight passes your limit, so at checkout cash on delivery is not among the choices, while prepayment and the other payment methods you offer remain. Light orders can still be paid on delivery.

What changes

  • Automatic restriction. The weights of the products in the cart are added up; if the total passes the limit, cash on delivery is not offered.
  • You set the limit. You can change the maximum weight and the unit (kg, g or lbs) at any time.
  • Everything else stays as it is. Only cash on delivery is hidden; the other payment methods remain.

Who it is for

Stores with heavy products (bags, bulky parcels, materials) that offer cash on delivery and worry about the cost of uncollected parcels.

How you set it up

You switch the feature on in Stores › Configuration › Magelan › COD Weight Restriction, where you set the maximum weight and the unit. The total weight of all products in the cart is compared (product weight times quantity); the default limit is 50 kg until you change it.

Good to know

  • Products with no weight entered count as weightless.
  • The module hides cash on delivery but does not show the customer an explanation.

Want it in your store?

Install it yourself or choose installation and configuration when you order. Building a new store? Add it to your project in the Konfigurator.

Screens

Take a look at every step.

www.degriz.eu
Cash on delivery is offered for a light cart and disappears when the weight goes over the limit
www.degriz.eu
With a light cart, cash on delivery is among the payment methods
www.degriz.eu
The shopper raises the quantity and the cart goes over the weight limit
www.degriz.eu
With a heavy cart, cash on delivery is no longer offered at checkout
www.degriz.eu
Settings: switch on, maximum weight and unit
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.

You get the module from our private Composer repository; we send you the user name and access key after purchase. We can install it for you, or whoever looks after your store can run these commands in the root of the Magento 2 store (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_codweightrestrictionphp bin/magento module:enable Magelan_CodWeightRestrictionphp 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 payment we e-mail you a link to create the access key. Keep the key 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? Create a new one in your account under Module licences; the old one stops working.

Technical details

Compatibility.

Just the facts.

Code
degriz_codweight
Platform
Magento 2
Licence
One-off
Change log

Version 1.0.5 · 27 Nov 2026

  • The customer now sees why cash on delivery is missing: the message from the settings (Error Message) is shown in the cart and at checkout while the order is over the weight limit. Leave it empty to show nothing.
  • The default message is translatable (Slovenian included).

Version 1.0.3 · 11 Oct 2026

  • The module settings now sit in the Magelan tab.

Version 1.0.2 · 5 Oct 2026

  • The weight is checked against the cart the payment methods are listed for, including orders via the REST interface and in the admin.
  • Product weights in pounds are converted before they are compared with the limit.

Version 1.0.1 · 16 Sep 2026

  • Corrected Slovenian translations: weight units, permissions and labels.

Version 1.0.0 · 3 Aug 2026

  • First release: cash on delivery is not offered when the order weight exceeds the limit you set.
  • You set the maximum weight, the unit and the message the customer sees.
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

Installation and configuration are optional: choose them when you order and the price is added to the order (+ VAT). If more time is needed, we bill the rest separately.

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 12 months of free 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 weight limit

€150 + VAT

One-off licence for one store, no subscription. Installation and configuration are optional.

After payment you get the licence and access to our private repository: immediately with a card or PayPal, with a bank transfer (UPN) as soon as we receive the payment. 12 months of free updates are included.

Write to us

Install it yourself by following the guide, or choose installation and configuration above. If more time is needed, we bill the rest separately. 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] · +386 40 807 231

Cash-on-delivery weight limit€150 + 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

We use cookies for the proper functioning of the site, visit analytics and showing ads tailored to your interests. Read more in our privacy policy. By clicking "Accept all" you agree to the use of all cookies.