krishtechnolabs / akeneo-currency-rate-conversion
Akeneo Currency Conversion is a module that allows you to convert one currency price to another currency based on the currency rates and process updated prices across products.
Requires
- akeneo/pim-community-dev: ^5.0
README
Akeneo Currency Conversion is a module that allows you to convert one currency price to another currency based on the currency rates and process updated prices across products.
There is an option Currency converter configuration inside the Akeneo Settings menu. Inside the configuration, you can set currency rates and select the base currency for currency rate conversion.
You can update the currency rates manually as well as using currency API.
For now, we are providing the support for the two currency rates APIs as given below:
- Fixer Io(https://fixer.io/)
- Currency Converter API(https://free.currencyconverterapi.com/)
For this, you just need to get your APIs and setup in the configuration and then you can fetch the currency rates.
Installation instructions
- First, install the package with the following command.
composer require krishtechnolabs/akeneo-currency-rate-conversion
- Register the module in the config/bundles.php
KTPL\CurrencyRateConversionBundle\CurrencyRateConversionBundle::class => ['all' => true],
- Now that you have activated and configured the bundle, now all you need to do is import the AkeneCurrencyRateConversionBundleoTrashBundle routing files.
# config/routes/ktpl_currency_conversion.yml ktpl_currency_conversion: resource: "@CurrencyRateConversionBundle/Resources/config/routing.yml" prefix: /
- Now, run the below command from the terminal from the installation directory.
php bin/console ca:cl && php bin/console ktpl:install:currency-rate-conversion
How to use it
-
After installation of the connector, you will see Currency converter configuration navigation inside Akeneo settings menu.
-
Now, click on the Currency converter configuration navigation and here you need to set the base currency and the currency rates.
-
Also, you can fetch the updated currency using the currency APIs
-
Now, you just need to click on the EXECUTE CURRENCY CONVERSION button that's it. This process will automatically save the updated price value in the products.