Skip to content

module

Auto Added by WPeMatico

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

Product name change

Is there a way or a program etc that can help to change products on 50k products in an easier way than Excel or do it one by one in Admin? Thanks,

Magento 2 How to disable module using xml file?

I am facing issue to create module. I created one module and I given apply to system admin to enable disable. So, Right now I am doing module hide/show using below code. $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $module_enable = $objectManager->get(‘MagentoFrameworkAppConfigScopeConfigInterface’)->getValue(‘magefilter/magefilter/enable’); if(isset($module_enable) &&… Read More »Magento 2 How to disable module using xml file?

Fail to override interface module in magento2

i need problem with extension interface in magento2. Mi extension_attributes.xml: <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Api/etc/extension_attributes.xsd”> <extension_attributes for=”MagentoSalesRuleApiDataCouponGenerationSpecInterface”> <attribute code=”specific” type=”string” /> </extension_attributes> </config> Mi di.xml <preference for=”MagentoSalesRuleBlockAdminhtmlPromoQuoteEditTabCouponsForm” type=”CustomSalesRuleBlockAdminhtmlPromoQuoteEditTabCouponsForm” /> <preference for=”MagentoSalesRuleHelperCoupon” type=”CustomSalesRuleHelperCoupon”/> <preference for=”MagentoSalesRuleModelServiceCouponManagementService” type=”CustomSalesRuleModelServiceCouponManagementService”/> <preference for=”MagentoSalesRuleModelCouponMassgenerator” type=”CustomSalesRuleModelCouponMassgenerator”/> <preference for=”MagentoSalesRuleModelDataCouponGenerationSpec” type=”CustomSalesRuleModelDataCouponGenerationSpec”/> Mi… Read More »Fail to override interface module in magento2