Flexible Shipping - Currency support
Currency support
Flexible Shipping supports calculating the shipping costs and the Currency exchange in combination with the following currency switcher plugins:
- Aelia Currency Switcher for WooCommerce,
- WOOCS WooCommerce Currency Switcher,
- Currency Switcher for WooCommerce,
- Multi Currency for WooCommerce,
- WPML.
Support for other currency switcher plugins
It is possible to use a filter flexible_shipping_value_in_currency
in currency converting that use Flexible Shipping.
Example for WPML plugin:
if ( isset( $woocommerce_wpml ) ) { add_filter( 'flexible_shipping_value_in_currency', array( $this, 'flexible_shipping_value_in_currency_wpml' ), 1 ); }
public function flexible_shipping_value_in_currency_wpml( $value ) { return apply_filters( 'wcml_raw_price_amount', $value ); }
How to use Flexible Shipping PRO with WPML plugin?
You will need to have WPML WooCommerce Multilingual enabled in order to successfully follow these steps.
- Install the Flexible Shipping from the repository: https://wordpress.org/plugins/flexible-shipping/
- Go to the plugin's settings: wp-admin/admin.php?page=wc-settings&tab=shipping§ion=flexible_shipping_info
- Choose Shipping Zones: wp-admin/admin.php?page=wc-settings&tab=shipping§ion=
- Add a new shipping zones, e.g. Germany
- Add a shipping method: Flexible Shipping
- Edit this method: currency, e.g:
- Go to String Translation: wp-admin/admin.php?page=wpml-string-translation%2Fmenu%2Fstring-translation.php
- Choose the strings from the plugin flexible-shipping
- You will see all strings from the plugin like:
Shipping method name, Shipping method description, Free Shipping Label. To translate categories you have to add the categories in every language so it takes effect.
- Translate them.
- Go to the WPML Currency Switcher settings: wp-admin/admin.php?page=wpml-wcml&tab=multi-currency and the currency, e.g:
- Pound Sterling as the main currency,
- Euro as an additional currency,
- 1 Pound Sterling = 1,16 Euro.
- Go to the Cart page and check the translated strings and calculated currencies from Pound sterling to Euro.
- You can also translate the strings of the plugin's setting when you download them fully on the String Translation page.