The Currency Switcher Settings panel allows you to enable automatic currency conversion on your website using exchange rates fetched from a trusted external source (Open Exchange Rates).
API Configuration
To activate the currency switcher, you need to connect the theme to the Open Exchange Rates API. Follow these steps:
-
API Key:
Enter your API key in the dedicated field. You can get a free key by clicking the Get API Key button and registering on openexchangerates.org. -
Update Interval:
Select how frequently the exchange rates should be updated:- Hourly
- Daily
- Weekly
-
Save Settings:
Click the Save Settings button to confirm and activate your configuration.
Note: The API must be connected for the switcher to work. The current status is shown at the top under "API Status".
Status Indicators
- API Status: Shows whether the API is currently connected.
- Exchange Rates: Number of exchange rates stored.
- Last Update: Indicates the most recent update time.
- Update Interval: Reflects the frequency you've set for automatic updates.
How It Works
This section explains the underlying system logic and benefits:
-
API Integration:
Connects to Open Exchange Rates to fetch real-time conversion data. -
Automatic Updates:
Ensures exchange rates are refreshed at the selected interval using WordPress cron jobs. -
Local Storage:
Rates are stored locally in your database for faster access and lower API usage. -
Currency Switching:
Lets users view property prices in their preferred currency with accurate, real-time conversion.
Comments
0 comments
Article is closed for comments.