function check_currency_ajax_actions()
 {
     global $woocommerce_wpml;
     if ($woocommerce_wpml->settings['enable_multi_currency'] != WCML_MULTI_CURRENCIES_INDEPENDENT) {
         $WCML_WC_MultiCurrency = new WCML_WC_MultiCurrency();
         $WCML_WC_MultiCurrency->init_ajax_currencies_actions();
     }
 }
 function install()
 {
     global $wpdb;
     if (empty($this->settings['set_up'])) {
         // from 3.2
         if ($this->settings['is_term_order_synced'] !== 'yes') {
             //global term ordering resync when moving to >= 3.3.x
             add_action('init', array($this->terms, 'sync_term_order_globally'), 20);
         }
         if (!get_option('wcml_custom_attr_translations')) {
             add_option('wcml_custom_attr_translations', array());
         }
         if (!isset($this->settings['wc_admin_options_saved'])) {
             $this->handle_admin_texts();
             $this->settings['wc_admin_options_saved'] = 1;
         }
         if (!isset($this->settings['trnsl_interface'])) {
             $this->settings['trnsl_interface'] = 1;
         }
         if (!isset($this->settings['products_sync_date'])) {
             $this->settings['products_sync_date'] = 1;
         }
         self::set_up_capabilities();
         $this->set_language_information();
         $this->settings['set_up'] = 1;
         $this->update_settings();
     }
     require_once WCML_PLUGIN_PATH . '/inc/multi-currency.class.php';
     WCML_WC_MultiCurrency::install();
 }