This is a currency converter to use with EBANX Payment Gateway for WooCommerce. This is an unnoficial plugin.
- PHP 5.6+
- Wordpress 4.0+
- WooCommerce 2.6+
- EBANX Payment Gateway for WooCommerce 1.10.0+
EBANX only supports currency exchange when processing with USD or EUR, so this plugin requires that your store process one of these two currencies.
The easiest way to use this plugin is using the included Widget.
- On WordPress Admin Dashboard go to Appearence Β» Widgets.
- Drag and drop EBANX Currency Converter widget into any layout area.
- Choose the countries you process with EBANX and save.
- That's it!
You can make your own design and use this plugin in your theme! Just make sure you add the following attributes to the elements you want to use as currency switch:
class
:ebanx-currency-converter--flag-link
This class has no styling. It is used for javescript to find the flag elements.data-currency
:USD
,EUR
,BRL
,MXN
,COL
,CLP
orPEN
The currency this link switches to.
Example:
<button class="ebanx-currency-converter--flag-link" data-currency="BRL">Real</button>
<button class="ebanx-currency-converter--flag-link" data-currency="USD">Dollar</button>
Also, for styling purposes, the selected currency will automatically get the class active
.