WPML

Overview of the Issue

When using the Flatsome theme with our multi-currency feature, the currency in the Top and Sidebar MiniCart does not update correctly after adding a product to the cart.  However, on reloading the page, the currency is set correctly.

Workaround

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

Please, make sure of having a full backup of your site before proceeding.

  • Open your theme’s functions.php file.
  • Add the following code:
    /**
    * Add this code to the functions.php file of your theme.
    */
    add_filter( 'wcml_multi_currency_ajax_actions', 'flatsome_add_action_to_multi_currency_ajax', 10, 1 );
    
    function flatsome_add_action_to_multi_currency_ajax( $ajax_actions ) {
      $ajax_actions[] = 'flatsome_ajax_add_to_cart'; 
      return $ajax_actions;
    }

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.

Ask a support question

All known issues