Multi Language site
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 pleaseIf 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.
Quote from sami on September 25, 2019, 16:48Hi there,
I have a multi language website using WPML plugin. Arabic and English. Whatever currency sign I use gets displayed on both the Arabic version and the English version which is not the desired outcome.
I used to use this code in the child theme functions.php:
#English Currency for English Site and Arabic Currency for Arabic site
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);function change_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'SAR':
if(ICL_LANGUAGE_CODE=='ar'){
$currency_symbol = 'ر.س';
}else{
$currency_symbol = 'SAR';
}
break;
}
return $currency_symbol;
}
However, once I activate your plugin, this code seems to be overwritten by your plugin for one reason on another.
Is there anyway around this ?
P.S: I bought the pro version from codecanyon and I am not sure where to find this "purchase code"
Hi there,
I have a multi language website using WPML plugin. Arabic and English. Whatever currency sign I use gets displayed on both the Arabic version and the English version which is not the desired outcome.
I used to use this code in the child theme functions.php:
#English Currency for English Site and Arabic Currency for Arabic site
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);
function change_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'SAR':
if(ICL_LANGUAGE_CODE=='ar'){
$currency_symbol = 'ر.س';
}else{
$currency_symbol = 'SAR';
}
break;
}
return $currency_symbol;
}
However, once I activate your plugin, this code seems to be overwritten by your plugin for one reason on another.
Is there anyway around this ?
P.S: I bought the pro version from codecanyon and I am not sure where to find this"purchase code"
Quote from Pablo Borysenco on September 26, 2019, 11:28Hello
To get "purchase code" - https://c2n.me/43Mtl52.jpg
Try to change this line:
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 9999999, 2);
Hello
To get "purchase code" - https://c2n.me/43Mtl52.jpg
Try to change this line:
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 9999999, 2);
Quote from sami on October 9, 2019, 13:10Hi,
I tried adding the line code as u suggested but it didn't do anything.
I have added the purchase code to the private data section as well as a link to our staging site where the issue can be seen. In the English version of the site, when the page first loads, the correct currency symbol "SAR" is displayed for a second and then it changes back to ر.س.
One more thing, the problem disappears once the multi currency plugin is disabled.
I would appreciate it if you can take a look at this.
Regards,
Hi,
I tried adding the line code as u suggested but it didn't do anything.
I have added the purchase code to the private data section as well as a link to our staging site where the issue can be seen. In the English version of the site, when the page first loads, the correct currency symbol"SAR" is displayed for a second and then it changes back to ر.س.
One more thing, the problem disappears once the multi currency plugin is disabled.
I would appreciate it if you can take a look at this.
Regards,
Quote from Pablo Borysenco on October 10, 2019, 11:47Hello
Try this code:
add_filter('woocs_currency_data_manipulation', 'woocs_currency_data_manipulation', 1, 1);function woocs_currency_data_manipulation($currencies){if(isset($currencies['SAR'])){if(ICL_LANGUAGE_CODE=='ar'){
$currencies['SAR']['symbol'] = 'ر.س';
}else{
$currencies['SAR']['symbol'] = 'SAR';
}}return $currencies;}
Hello
Try this code:
$currencies['SAR']['symbol'] = 'ر.س';
}else{
$currencies['SAR']['symbol'] = 'SAR';
}
Quote from sami on October 11, 2019, 17:11Hi,
Thank you for your reply. However, I added this code to my child theme's functions.php and it didn't change anything.
Any other ways to handle this ?
Regards,
Hi,
Thank you for your reply. However, I added this code to my child theme's functions.php and it didn't change anything.
Any other ways to handle this ?
Regards,
Quote from Pablo Borysenco on October 14, 2019, 11:25Hello
Please disable this option - https://c2n.me/444gTwN.png
Hello
Please disable this option - https://c2n.me/444gTwN.png
Quote from sami on March 23, 2020, 00:20Hi,
Thank you for your reply.
When this option is disabled, the currency will be cached in the browser. This is an issue because when someone visits the Arabic version of the site, then switch to the English version, the currency will show in Arabic. and vise versa.
When this feature is enabled. English currency don't in the English version of the site.
What else can be done here ?
Hi,
Thank you for your reply.
When this option is disabled, the currency will be cached in the browser. This is an issue because when someone visits the Arabic version of the site, then switch to the English version, the currency will show in Arabic. and vise versa.
When this feature is enabled. English currency don't in the English version of the site.
What else can be done here ?
Quote from Pablo Borysenco on March 23, 2020, 13:10Hello
Please contact to WPML support. Ask them how to determine the current language in ajax mode.
Hello
Please contact to WPML support. Ask them how to determine the current language in ajax mode.