Skip to content

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

Exception message: Deprecated Functionality: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in magento 2.4.6

I updated my php version is 8.3 and magento version is 2.4.6 currently facing issue with round functionality. Exception message: Deprecated Functionality: round(): Passing null to parameter #1 ($num) of type int|float is deprecated Fee.php $amount = $invoice->getHandlingCharges(); $amount +=… Read More »Exception message: Deprecated Functionality: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in magento 2.4.6