WooCommerce Multilingual – run WooCommerce with WPML - Version 3.6.5.1

Version Description

  • Added some files that were accidentaly not included in the 3.6.5 release.
Download this release

Release Info

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

Code changes from version 3.6.5 to 3.6.5.1

assets/js/cart_widget.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($){
2
+
3
+ if( sessionStorage.getItem('wc_cart_hash') == '' ){
4
+ sessionStorage.removeItem('wc_fragments');
5
+ }
6
+
7
+
8
+ });
9
+
compatibility/wc_ajax_layered_nav_widget.class.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ Class for WooCommerce Advanced Ajax Layered Navigation
5
+ */
6
+
7
+ class WCML_Ajax_Layered_Nav_Widget {
8
+ function __construct() {
9
+ add_filter('wc_ajax_layered_nav_sizeselector_term_id', array($this, 'wc_ajax_layered_nav_sizeselector_term_id'));
10
+ add_filter('wc_ajax_layered_nav_query_editor', array($this, 'wc_ajax_layered_nav_query_editor'),10,3);
11
+ }
12
+
13
+ function wc_ajax_layered_nav_sizeselector_term_id($term_id) {
14
+ $ulanguage_code = apply_filters( 'wpml_default_language', null );
15
+ $term_id = apply_filters( 'wpml_object_id', $term_id, 'category', true, $ulanguage_code );
16
+ return $term_id;
17
+ }
18
+
19
+ function wc_ajax_layered_nav_query_editor($posts, $attribute, $value){
20
+ $posts = get_posts(
21
+ array(
22
+ 'post_type' => 'product',
23
+ 'numberposts' => -1,
24
+ 'post_status' => 'publish',
25
+ 'fields' => 'ids',
26
+ 'no_found_rows' => true,
27
+ 'tax_query' => array(
28
+ array(
29
+ 'taxonomy' => $attribute,
30
+ 'terms' => $value,
31
+ 'field' => 'term_id'
32
+ )
33
+ )
34
+ )
35
+ );
36
+ return $posts;
37
+ }
38
+ }
compatibility/wc_composite_products.class.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class WCML_Composite_Products {
5
+ function __construct() {
6
+ add_filter('woocommerce_composite_component_default_option', array($this, 'woocommerce_composite_component_default_option'), 10, 3);
7
+ add_filter( 'wcml_cart_contents', array($this, 'wpml_composites_compat'), 11, 4 );
8
+ add_filter( 'wcml_exception_duplicate_products_in_cart', array($this, 'wpml_composites_dupicate_exception'), 10, 2 );
9
+ add_filter( 'woocommerce_composite_component_options_query_args', array($this, 'wpml_composites_transients_cache_per_language'), 10, 3 );
10
+ }
11
+
12
+ function woocommerce_composite_component_default_option($selected_value, $component_id, $object) {
13
+ $selected_value = apply_filters('wpml_object_id', $selected_value, 'product');
14
+
15
+ return $selected_value;
16
+ }
17
+
18
+ function wpml_composites_compat( $new_cart_data, $cart_contents, $key, $new_key ) {
19
+
20
+ if ( isset( $cart_contents[ $key ][ 'composite_children' ] ) || isset( $cart_contents[ $key ][ 'composite_parent' ] ) ) {
21
+
22
+ $buff = $new_cart_data[ $new_key ];
23
+
24
+ unset( $new_cart_data[ $new_key ] );
25
+
26
+ $new_cart_data[ $key ] = $buff;
27
+ }
28
+
29
+ return $new_cart_data;
30
+ }
31
+
32
+ function wpml_composites_dupicate_exception( $exclude, $cart_item ) {
33
+
34
+ if ( isset( $cart_item[ 'composite_parent' ] ) || isset( $cart_item[ 'composite_children' ] ) ) {
35
+ $exclude = true;
36
+ }
37
+
38
+ return $exclude;
39
+ }
40
+
41
+ function wpml_composites_transients_cache_per_language( $args, $query_args, $component_data ) {
42
+
43
+ $args[ 'wpml_lang' ] = apply_filters( 'wpml_current_language', NULL );
44
+
45
+ return $args;
46
+ }
47
+
48
+ }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: CMS, woocommerce, commerce, ecommerce, e-commerce, products, WPML, multili
5
  License: GPLv2
6
  Requires at least: 3.0
7
  Tested up to: 4.2.2
8
- Stable tag: 3.6.5
9
 
10
  Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
11
 
@@ -78,6 +78,9 @@ In order for the checkout and store pages to appear translated, you need to crea
78
 
79
  == Changelog ==
80
 
 
 
 
81
  = 3.6.5 =
82
  * Enabled the WooCommerce Bookings compatibility support
83
  * Bug fix: Fixed a bug that caused a wrong price to be displayed when adding a product in the cart from two different languages
@@ -525,4 +528,4 @@ Fixed a few bugs. Added multi-currency mode.
525
  Recommended update! Fixed a few bugs;
526
 
527
  = 0.9 =
528
- * First release
5
  License: GPLv2
6
  Requires at least: 3.0
7
  Tested up to: 4.2.2
8
+ Stable tag: 3.6.5.1
9
 
10
  Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
11
 
78
 
79
  == Changelog ==
80
 
81
+ = 3.6.5.1 =
82
+ * Added some files that were accidentaly not included in the 3.6.5 release.
83
+
84
  = 3.6.5 =
85
  * Enabled the WooCommerce Bookings compatibility support
86
  * Bug fix: Fixed a bug that caused a wrong price to be displayed when adding a product in the cart from two different languages
528
  Recommended update! Fixed a few bugs;
529
 
530
  = 0.9 =
531
+ * First release
wpml-woocommerce.php CHANGED
@@ -5,12 +5,12 @@
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: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com/
8
- Version: 3.6.5
9
  */
10
 
11
 
12
  if(defined('WCML_VERSION')) return;
13
- define('WCML_VERSION', '3.6.5');
14
  define('WCML_PLUGIN_PATH', dirname(__FILE__));
15
  define('WCML_PLUGIN_FOLDER', basename(WCML_PLUGIN_PATH));
16
  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: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com/
8
+ Version: 3.6.5.1
9
  */
10
 
11
 
12
  if(defined('WCML_VERSION')) return;
13
+ define('WCML_VERSION', '3.6.5.1');
14
  define('WCML_PLUGIN_PATH', dirname(__FILE__));
15
  define('WCML_PLUGIN_FOLDER', basename(WCML_PLUGIN_PATH));
16
  define('WCML_PLUGIN_URL', plugins_url() . '/' . WCML_PLUGIN_FOLDER);