PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

WOOCS + TranslatePress

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi guys,

This is a fantastic plugin, thank you for all the amazing work.

I just configured it on our website (https://globalhubb.ro) and are using TranslatePress as a multilanguage solution. Unfortunately, I could not find support for TranslatePress in the FAQ point 19, only for WPML and other translators. I am kindly looking for someone who can provide the code for TranslatePress auto currency switch once the language is changed. For example for Polish, I would like WOOCS to change automatically to PLN (zloty).

If it's something that required some work I am more than happy to pay. My code skills are minimum.

Thank you!

Hello

Paste your license key here - https://c2n.me/43SC6rb.png -> https://c2n.me/42HBIt7.png

Hi Pablo,

Pasted :)

Try  to  use:

 

add_filter('wp_head', function() {

global $TRP_LANGUAGE;
$lang = $TRP_LANGUAGE;
global $WOOCS;
switch ($lang)
{
case 'bg_BG':
$WOOCS->set_currency('BGN');
break;
case 'en_GB':
$WOOCS->set_currency('EUR');
break;
default:
$WOOCS->set_currency('USD');
break;
}
});

Hi Pablo,

Many thanks for the code! It works almost perfectly. I customized it to my needs as below, but there is only one problem with changing to English language not changing currency to GBP. I have English as en_US and currency as GBP but they won't change. Do you have any suggestion?

Once again, fantastic work, thank you!!

add_filter('wp_head', function() {

global $TRP_LANGUAGE;
$lang = $TRP_LANGUAGE;
global $WOOCS;
switch ($lang)
{
case 'ro_RO':
default:
$WOOCS->set_currency('RON');
break;
case 'sk_SK':
$WOOCS->set_currency('EUR');
break;
case 'cs_CZ':
$WOOCS->set_currency('CZK');
break;
case 'pl_PL':
$WOOCS->set_currency('PLN');
break;
case 'en_US':
$WOOCS->set_currency('GBP');
break;
}

That didn't seem to work well after all, I am trying to set RON as default and all others selectable...

Hello

Please delete  this  line  - https://c2n.me/4772AfV.png