Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where the currency symbol on their website displays in Arabic when the site is in English, despite needing it to match the language currently being displayed (English or Arabic).
Solution:
If you're facing a similar issue where the currency symbol does not match the website's language, we recommend checking the solution provided in a related support ticket. This involves configuring WPML to correctly translate custom currency symbols in WooCommerce. You can find detailed instructions on how to address this issue by visiting the following link: Translation of Custom Currency Symbols in WooCommerce Using WPML.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum for further assistance.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 20 replies, has 0 voices.

Last updated by emirates-literatureF 4 days, 8 hours ago.

Assisted by: Laura.

Author Posts
August 26, 2025 at 9:29 am #17347328

emirates-literatureF

Yes please go ahead and proceed, and keep me posted. Thanks!

August 26, 2025 at 11:00 am #17347964

Laura
WPML Supporter since 05/2018

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hi, I've been notified you're opening chats about this same issue. Please don't do that. It will take some time to debug your issue, I'll update you when I have news.

August 26, 2025 at 3:05 pm #17348895

Laura
WPML Supporter since 05/2018

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

The problem is with your site's theme. In functions.php there is this line

add_filter( 'woocommerce_create_pages', '__return_false' );

so when WCML tries to create page translations it crashes causing the error.

The quickest solution would be to switch to another theme, run the WCML wizard then reactivate the theme.

Then we can see if the code works or not.

August 27, 2025 at 5:42 am #17349920

emirates-literatureF

ok i commented this line and i was able to install wcml and everything is good and amazing now. i added to functions.php this line of code as per WPML:
add_filter("woocommerce_currency_symbol", "change_existing_currency_symbol", 10, 2);

function change_existing_currency_symbol($currency_symbol, $currency)
{
switch ($currency) {
case "AED":
if (ICL_LANGUAGE_CODE == "en") {
$currency_symbol = __("AED", "elfdubai.org");
} else {
$currency_symbol = __("د.إ", "elfdubai.org");
}
break;
}
return $currency_symbol;
}
and i received 500 server error now: hidden link can you let me know please what to do now and how to fix the currency thing in my website please?

August 27, 2025 at 6:08 am #17349968

emirates-literatureF

i used this:
add_action( 'after_switch_theme', 'enable_option_based_form_editor_on_theme_activation' );

add_filter( 'woocommerce_currency_symbol', 'wc_change_uae_currency_symbol', 10, 2 );
function wc_change_uae_currency_symbol( $currency_symbol, $currency ) {
switch ( $currency ) {
case 'AED':
$currency_symbol = 'AED';
break;
}
return $currency_symbol;
}

and its showing correct AED but in arabic not showing in arabic.

August 27, 2025 at 6:24 am #17350005

Laura
WPML Supporter since 05/2018

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

The error said you already added the snippet in your child theme (functions.php, line 38), and you can't do that.

Please check the snippet is added only once, preferably in the child theme.

If you still have the issue, I would suggest you test the snippet with a default theme, since your theme seems to have some custom coding that might interfere with the snippet.

August 27, 2025 at 10:45 am #17351435

emirates-literatureF

i fix it by updating the function for english and arabic and i kept the wcml