Skip to content

Custom Module Not Working in 2.4.4 but working in 2.4.3

I have implemented a custom module based on this thread -https://magento.stackexchange.com/questions/339930/change-product-price-precision-to-3

It’s working perfectly fine on Magento 2.4.3, but no changes are reflecting when I upgrade to 2.4.4. But the module is installed successfully.

My module structure-

/app/code/Sanket/PricePrecision
 ->registration.php
 ->/etc
   ->module.xml
   ->di.xml
 ->/Model
   ->PriceCurrency.php
   ->RowBaseCalculator.php
   ->TotalBaseCalculator.php

My registration.php

<?php 

MagentoFrameworkComponentComponentRegistrar::register(
    MagentoFrameworkComponentComponentRegistrar::MODULE, 
    'Sanket_PricePrecision',
    __DIR__
);

My di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

    <preference for="MagentoDirectoryModelPriceCurrency" type="BedeePricePrecisionModelPriceCurrency"/>
    <preference for="MagentoTaxModelCalculationTotalBaseCalculator" type="BedeePricePrecisionModelTotalBaseCalculator"/>
    <preference for="MagentoTaxModelCalculationRowBaseCalculator" type="BedeePricePrecisionModelRowBaseCalculator"/>

</config>

My module.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Sanket_PricePrecision" setup_version="1.2.2">
        <sequence>
        </sequence>
    </module>
</config>