Skip Navigation

Resolved

Topic Tags: Compatibility

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

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;
    }