Content of the page

Switch currency with language change

WPML: open functions.php of your current wp theme drop there next PHP code:

See WPML docs about languages codes Polylang: open functions.php of your current wp theme drop there next PHP code:

https://wordpress.org/support/topic/switch-currency-with-language-change-polylang/ See Polylang docs about languages codes GTranslate: open functions.php of your current wp theme drop there next PHP code:

… read more

How to drop wordpress currency switcher in menu

Install plugin https://wordpress.org/plugins/shortcode-in-menus/ Go to menu page wp-admin/nav-menus.php Drop shortcode [wpcs] or [wpcs_price] into navigation label textinput with any text you want p.s. Possible CSS incompatibilities which should be resolved by you or your site developer

How to manipulate with currencies rates

Sometimes some customers need manipulation with currency rates, for example add to USD rate 10%. Every body has its own logic and Math. This article just show how to do this. open your theme functions.php on the same bottom of the file write next code:

   

How to create currency links without shortcode

Sometimes customer want to place links for currencies changing into his site header.php. Or smth another… But if to place link simply as: <a href=”/?currency=USD”>USD</a> – it will redirect user to the main page – what is not convenient. In such case JavaScript can help you! Drop links with the currencies you are need into the place… read more