Skip to content

Commit

Permalink
Disable module for Admin Panel: prevent rounding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed May 9, 2022
1 parent 9cc7104 commit 395b311
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions etc/adminhtml/di.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © OpenGento, All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Directory\Model\Currency">
<plugin name="Opengento_CurrencyPrecision::modify_precision" disabled="true"/>
</type>
<type name="Magento\Directory\Model\PriceCurrency">
<plugin name="Opengento_CurrencyPrecision::modify_round" disabled="true"/>
</type>
<type name="Magento\Framework\Locale\Format">
<plugin name="Opengento_CurrencyPrecision::locale_number_format" disabled="true"/>
</type>
</config>
12 changes: 12 additions & 0 deletions etc/adminhtml/events.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © OpenGento, All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="currency_display_options_forming">
<observer name="Opengento_CurrencyPrecision::currency_precision_initializer" disabled="true"/>
</event>
</config>

0 comments on commit 395b311

Please sign in to comment.