Skip Navigation

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

Problem: if you use Uni CPO and Multicurrency, you get always the default currency symbol even when you switch languages

Solution: see below

Relevant Documentation: https://wpml.org/forums/topic/wrong-currency-symbol-if-using-uni-cpo/#post-5792065

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.

This topic contains 2 replies, has 2 voices.

Last updated by tomM-17 4 years, 7 months ago.

Assisted by: Laura.

Author Posts
March 28, 2020 at 2:25 pm

tomM-17

if you use Uni CPO and Multicurrency, you get always the default currency symbol even when you switch language

March 28, 2020 at 4:38 pm
March 30, 2020 at 8:36 am #5792065

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

Hi,

can you please try to add this code to your functions.php? It's working for us in the Sandbox

add_filter( 'wcml_multi_currency_ajax_actions', 'add_action_to_multi_currency_ajax', 10, 1 );
 
function add_action_to_multi_currency_ajax( $ajax_actions ) {
 
    $ajax_actions[] = 'uni_cpo_price_calc'; // Add a AJAX action to the array
    return $ajax_actions;
 
}