WooCommerce Multilingual – run WooCommerce with WPML - Version 3.2.2

Version Description

Download this release

Release Info

Developer AmirHelzer
Plugin Icon 128x128 WooCommerce Multilingual – run WooCommerce with WPML
Version 3.2.2
Comparing to
See all releases

Code changes from version 3.2.1 to 3.2.2

inc/terms.class.php CHANGED
@@ -50,6 +50,8 @@ class WCML_Terms{
50
  add_filter('get_the_terms',array($this,'shipping_terms'),10,3);
51
  //filter coupons terms in admin
52
  add_filter('get_terms',array($this,'filter_coupons_terms'),10,3);
 
 
53
  }
54
 
55
  function admin_menu_setup(){
@@ -832,5 +834,17 @@ class WCML_Terms{
832
  }
833
 
834
  }
 
 
 
 
 
 
 
 
 
 
 
 
835
 
836
  }
50
  add_filter('get_the_terms',array($this,'shipping_terms'),10,3);
51
  //filter coupons terms in admin
52
  add_filter('get_terms',array($this,'filter_coupons_terms'),10,3);
53
+
54
+ add_filter('woocommerce_attribute',array($this, 'hide_language_suffix'));
55
  }
56
 
57
  function admin_menu_setup(){
834
  }
835
 
836
  }
837
+
838
+ function hide_language_suffix($terms_string){
839
+ global $sitepress;
840
+ $terms = explode(', ', $terms_string);
841
+ if($terms){
842
+ foreach($terms as $k => $term){
843
+ $terms[$k] = $sitepress->the_category_name_filter($term);
844
+ }
845
+ $terms_string = implode(', ', $terms);
846
+ }
847
+ return $terms_string;
848
+ }
849
 
850
  }
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://wpml.org/documentation/related-projects/woocommerce-multilin
4
  Tags: CMS, woocommerce, commerce, ecommerce, e-commerce, products, WPML, multilingual, e-shop, shop
5
  License: GPLv2
6
  Requires at least: 3.0
7
- Tested up to: 3.8
8
- Stable tag: 3.2.1
9
 
10
  Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
11
 
4
  Tags: CMS, woocommerce, commerce, ecommerce, e-commerce, products, WPML, multilingual, e-shop, shop
5
  License: GPLv2
6
  Requires at least: 3.0
7
+ Tested up to: 3.8.1
8
+ Stable tag: 3.2.2
9
 
10
  Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
11
 
woocommerce_wpml.class.php CHANGED
@@ -38,6 +38,8 @@ class woocommerce_wpml {
38
  $WCML_Multi_Currency_Support = new WCML_Multi_Currency_Support;
39
  require_once WCML_PLUGIN_PATH . '/inc/multi-currency.class.php';
40
  $WCML_WC_MultiCurrency = new WCML_WC_MultiCurrency;
 
 
41
  }
42
 
43
  $this->products = new WCML_Products;
38
  $WCML_Multi_Currency_Support = new WCML_Multi_Currency_Support;
39
  require_once WCML_PLUGIN_PATH . '/inc/multi-currency.class.php';
40
  $WCML_WC_MultiCurrency = new WCML_WC_MultiCurrency;
41
+ }else{
42
+ add_shortcode('currency_switcher', '__return_empty_string');
43
  }
44
 
45
  $this->products = new WCML_Products;
wpml-woocommerce.php CHANGED
@@ -5,11 +5,11 @@
5
  Description: Allows running fully multilingual e-Commerce sites with WooCommerce and WPML. <a href="http://wpml.org/documentation/related-projects/woocommerce-multilingual/">Documentation</a>.
6
  Author: ICanLocalize
7
  Author URI: http://wpml.org/
8
- Version: 3.2.1
9
  */
10
 
11
  if(defined('WCML_VERSION')) return;
12
- define('WCML_VERSION', '3.2.1');
13
  define('WCML_PLUGIN_PATH', dirname(__FILE__));
14
  define('WCML_PLUGIN_FOLDER', basename(WCML_PLUGIN_PATH));
15
  define('WCML_PLUGIN_URL', plugins_url() . '/' . WCML_PLUGIN_FOLDER);
5
  Description: Allows running fully multilingual e-Commerce sites with WooCommerce and WPML. <a href="http://wpml.org/documentation/related-projects/woocommerce-multilingual/">Documentation</a>.
6
  Author: ICanLocalize
7
  Author URI: http://wpml.org/
8
+ Version: 3.2.2
9
  */
10
 
11
  if(defined('WCML_VERSION')) return;
12
+ define('WCML_VERSION', '3.2.2');
13
  define('WCML_PLUGIN_PATH', dirname(__FILE__));
14
  define('WCML_PLUGIN_FOLDER', basename(WCML_PLUGIN_PATH));
15
  define('WCML_PLUGIN_URL', plugins_url() . '/' . WCML_PLUGIN_FOLDER);