- Go to the nxtbn dashboard.
- Navigate to
Settings > Plugin
. - Upload the zip file by selecting the plugin category
Currency Backend
. - Ensure you have downloaded the zip file from here.
- Extract the zip file.
- Place the extracted files in
nxtbn.plugin.sources
.
The plugin will be automatically registered as a currency backend, and your site will be ready for multi-currency support.
You can also upload using the API responsible for uploading plugins: http://127.0.0.1:8000/core/dashboard/api/pluggin-install-via-git/
In the payload, send:
```json
{
"git_url": "github plugin url",
"plugin_type": "CURRENCY_BACKEND"
}
Note: nxtbn is not affiliated with https://app.freecurrencyapi.com/ and does not recommend any specific currency API. nxtbn follows a philosophy of freedom, allowing you to choose any currency API and write your own currency backend. For more details on creating your own currency backend, refer to the nxtbn documentation. https://docs.nxtbn.com/
the freecurrencyapi.com supports very limited currency, You can find other api that support currency of your choice freecurrencyapi.com supported currency: https://freecurrencyapi.com/docs/currency-list
Ensure the following environment variables are set in your .env
file:
CURRENCY_BACKEND=nxtbn.plugins.sources.freecurrencyapi
CURRENCY_EXCHANGE_API_KEY=<your API key>
ALLOWED_CURRENCIES=EUR,USD,CAD,JPY,AUD
Add the currencies that your payment gateway and currency API support to the ALLOWED_CURRENCIES
variable.
- Via nxtbn Dashboard:
- Go to
Settings > .env
.
- Go to
- Directly in the codebase:
- Open the
.env
file with a text editor (e.g.,nano .env
) and add the required variables.
- Open the
- Go to the Django admin panel.
- Navigate to
Currency Exchange
. - Click on
Refresh Rate
to update the database with the latest exchange rates.
- Go to
nxtbn Settings > Cron Job
. - Enable
Currency Backend Auto Populate
. - Set the frequency for updating the exchange rates (per day, week, or hour).
nxtbn uses Celery and Celery Beat for scheduled tasks.
Sign up at FreeCurrencyAPI and obtain your free API key.
By following these steps, you can easily install and configure the multi-currency plugin for your nxtbn Commerce platform, ensuring seamless currency management for your e-commerce site.
nxtbn does not endorse any specific platform, third-party service, API, payment gateway, or cloud platform. To provide merchants with the freedom to scale and select third-party services according to their preferences, nxtbn is designed with a pluggable architecture. We have developed numerous plugins for payment gateways, currency management, general purposes, CRM, automation, and integrations with various third-party APIs. However, nxtbn is not affiliated or associated with any of these third parties.
Most of the plugins developed by nxtbn are intended for demonstration purposes, enabling developers to create custom plugins tailored to their specific needs. With infinite possibilities, nxtbn does not impose limitations on customization, scalability, or platform choice. This ensures that users have the utmost flexibility to adapt and grow their systems according to their unique requirements.