Skip to content

Commit 395b311

Browse files
committed
Disable module for Admin Panel: prevent rounding issue
1 parent 9cc7104 commit 395b311

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

etc/adminhtml/di.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © OpenGento, All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
9+
<type name="Magento\Directory\Model\Currency">
10+
<plugin name="Opengento_CurrencyPrecision::modify_precision" disabled="true"/>
11+
</type>
12+
<type name="Magento\Directory\Model\PriceCurrency">
13+
<plugin name="Opengento_CurrencyPrecision::modify_round" disabled="true"/>
14+
</type>
15+
<type name="Magento\Framework\Locale\Format">
16+
<plugin name="Opengento_CurrencyPrecision::locale_number_format" disabled="true"/>
17+
</type>
18+
</config>

etc/adminhtml/events.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © OpenGento, All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
9+
<event name="currency_display_options_forming">
10+
<observer name="Opengento_CurrencyPrecision::currency_precision_initializer" disabled="true"/>
11+
</event>
12+
</config>

0 commit comments

Comments
 (0)