Currency switcher widget for BA Book Everything plugin
Supported currencies: USD, JPY, BGN, CZK, DKK, GBP, HUF, PLN, RON, SEK, CHF, ISK, NOK, HRK, RUB, TRY, AUD, BRL, CAD, CNY, HKD, IDR, ILS, INR, KRW, MXN, MYR, NZD, PHP, SGD, THB, ZAR and more.
It’s possible to use multiple currency switcher widget on one page.
Requires BA Book Everything 1.4.19 or higher, PHP 7.4 or higher.
After activating the plugin, add your currency settings via “BA Book Everything” > “Currency switcher” admin menu, and then add shortcode to the needed widget areas to show switcher widget on the front-end as illustrated on screenshots below.
- Copy and paste this shortcode into your widget area, posts or pages:
- Paste the PHP code into your theme’s file:
The front-end widget is only displayed if two or more currencies have been activated.
If only one currency is active, the switch will be disabled and the site will look as a site with one currency.
So you can set back-end prices in main currency (say, USD $), show prices on the front-end in local currency, and update all prices easily on the back-end by changing the rate.