PHP code example of dnafactory / mage2-currency
1. Go to this page and download the library: Download dnafactory/mage2-currency library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dnafactory / mage2-currency example snippets
xml
<type name="DNAFactory\Currency\Config\Currency">
<arguments>
<argument name="currenciesPositions" xsi:type="array">
<item name="EUR" xsi:type="const">\Magento\Framework\Currency::RIGHT</item>
<item name="USD" xsi:type="const">\Magento\Framework\Currency::LEFT</item>
</argument>
</arguments>
</type>