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.7.3 or higher, PHP 8.1 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.
Product is subject to a yearly license for support and automatic updates.
Front-end usage
- Copy and paste this shortcode into your widget area, posts or pages:
[babe_currency_switcher]
- Paste the PHP code into your theme’s file:
echo do_shortcode('[babe_currency_switcher]');
Tips
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.
Activating the setting to use cookies instead of sessions to store user currency sometimes may solve may solve some issues with website loading speed.