Skip to content

Add fee to Payment method

I’m trying to add an extra fee to the order when the payment method is Cash on delivery and the shipping country is Greece. I have created the following files: app/code/HectorCustom/CodFee/registration.php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::MODULE, ‘HectorCustom_CodFee’, __DIR__ ); app/code/HectorCustom/CodFee/Observer/AddCodFee.php namespace HectorCustomCodFeeObserver; use… Read More »Add fee to Payment method