Skip to content

JosephLeedy/magento2-module-custom-fees

Repository files navigation

Custom Fees for Magento 2

by Joseph Leedy

Custom Fees allows merchants to configure additional fees to be charged to customers when orders are placed.

Features

  • Allows fees to be configured with a label and amount to be added to an order
  • Custom fees are displayed for orders, invoices and credit memos in both the frontend and backend
  • Custom fees can be refunded via Magento's credit memo functionality

Requirements

  • PHP 8.1 or greater
  • Magento Open Source 2.4.4 or greater or Adobe Commerce 2.4.4 or greater

Installation

This extension can be installed via Composer from Packagist by running these commands from a terminal on a Web server or in the desired installation location:

cd /path/to/your/store
composer require joseph-leedy/module-custom-fees
php bin/magento module:enable JosephLeedy_CustomFees
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

Updating

This extension can be updated via Composer from Packagist by running these commands from a terminal on a Web server or in the desired installation location:

cd /path/to/your/store
composer update joseph-leedy/module-custom-fees
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

Usage

Configuration

Custom Fees can be added from the Magento Admin panel by going to Stores > Settings > Configuration > Sales > Sales > Custom Order Fees. The overall display order of the Custom Fees block in relation to other totals shown in the cart and checkout can be configured at Stores > Settings > Configuration > Sales > Sales > Checkout Totals Sort Order. All settings for this extension can be configured in the Global (Default), Website or Store scope.

Support

If you experience any issues or errors while using this extension, please open an issue in the GitHub repository. Be sure to include all relevant information, including a description of the issue or error, what you were doing when it occurred, what versions of Magento Open Source or Adobe Commerce and PHP are installed and any other pertinent details. I will do my best to respond to your request in a timely manner, typically within 24-48 business hours (Monday through Friday from 9:00AM—5:00PM U.S. Eastern Time, excluding holidays).

License

The source code contained in this extension is licensed under the Open Software License version 3.0 (OSL-3.0) license. A copy of this license can be found in the LICENSE file included with the source code or online at https://opensource.org/licenses/OSL-3.0.

Copyright for the included source code is exclusively held by Joseph Leedy, all rights reserved.

History

A full history of the extension can be found in the CHANGELOG.md file.

Contributing

We welcome and value your contribution. For more details on how you can help us improve and maintain this tool, please see the CONTRIBUTING.md file.

About

A Magento 2 extension that adds configurable custom fees to orders.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published