Version Description
Download this release
Release Info
Developer | mihaimihai |
Plugin | WooCommerce Multilingual – run WooCommerce with WPML |
Version | 3.7 |
Comparing to | |
See all releases |
Code changes from version 3.7.1 to 3.7
- compatibility/wc_bookings.class.php +2 -2
- compatibility/wc_composite_products.class.php +2 -5
- inc/products.class.php +2 -1
- readme.txt +2 -5
- wpml-woocommerce.php +2 -2
compatibility/wc_bookings.class.php
CHANGED
@@ -1568,14 +1568,14 @@ class WCML_Bookings{
|
|
1568 |
public function booking_filters_query( $query ) {
|
1569 |
global $typenow, $sitepress, $wpdb;
|
1570 |
|
1571 |
-
if (
|
1572 |
|
1573 |
$product_ids = $wpdb->get_col( $wpdb->prepare(
|
1574 |
"SELECT element_id
|
1575 |
FROM {$wpdb->prefix}icl_translations
|
1576 |
WHERE language_code = %s AND element_type = 'post_product'", $sitepress->get_current_language() ) );
|
1577 |
|
1578 |
-
$query->query_vars[ 'meta_query' ]
|
1579 |
array(
|
1580 |
'key' => '_booking_product_id',
|
1581 |
'value' => $product_ids,
|
1568 |
public function booking_filters_query( $query ) {
|
1569 |
global $typenow, $sitepress, $wpdb;
|
1570 |
|
1571 |
+
if ( $typenow == 'wc_booking' && isset( $_GET['post_type'] ) && $_GET['post_type'] == 'wc_booking' && !isset( $_GET['page'] )) {
|
1572 |
|
1573 |
$product_ids = $wpdb->get_col( $wpdb->prepare(
|
1574 |
"SELECT element_id
|
1575 |
FROM {$wpdb->prefix}icl_translations
|
1576 |
WHERE language_code = %s AND element_type = 'post_product'", $sitepress->get_current_language() ) );
|
1577 |
|
1578 |
+
$query->query_vars[ 'meta_query' ] = array(
|
1579 |
array(
|
1580 |
'key' => '_booking_product_id',
|
1581 |
'value' => $product_ids,
|
compatibility/wc_composite_products.class.php
CHANGED
@@ -10,11 +10,8 @@ class WCML_Composite_Products {
|
|
10 |
}
|
11 |
|
12 |
function woocommerce_composite_component_default_option($selected_value, $component_id, $object) {
|
13 |
-
|
14 |
-
|
15 |
-
$selected_value = apply_filters( 'wpml_object_id', $selected_value, 'product', true );
|
16 |
-
|
17 |
-
|
18 |
return $selected_value;
|
19 |
}
|
20 |
|
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 |
|
inc/products.class.php
CHANGED
@@ -3284,6 +3284,7 @@ class WCML_Products{
|
|
3284 |
}
|
3285 |
|
3286 |
function lock_variable_fields( $loop, $variation_data, $variation ){
|
|
|
3287 |
|
3288 |
$product_id = false;
|
3289 |
if( ( isset( $_GET['post'] ) && get_post_type( $_GET['post'] ) == 'product' ) ){
|
@@ -3294,7 +3295,7 @@ class WCML_Products{
|
|
3294 |
|
3295 |
if( !$product_id ){
|
3296 |
return;
|
3297 |
-
}elseif( !$
|
3298 |
<script type="text/javascript">
|
3299 |
jQuery(document).ready(function() {
|
3300 |
wcml_lock_variation_fields();
|
3284 |
}
|
3285 |
|
3286 |
function lock_variable_fields( $loop, $variation_data, $variation ){
|
3287 |
+
global $woocommerce_wpml;
|
3288 |
|
3289 |
$product_id = false;
|
3290 |
if( ( isset( $_GET['post'] ) && get_post_type( $_GET['post'] ) == 'product' ) ){
|
3295 |
|
3296 |
if( !$product_id ){
|
3297 |
return;
|
3298 |
+
}elseif( !$woocommerce_wpml->products->is_original_product( $product_id ) ){ ?>
|
3299 |
<script type="text/javascript">
|
3300 |
jQuery(document).ready(function() {
|
3301 |
wcml_lock_variation_fields();
|
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.3
|
8 |
-
Stable tag: 3.7
|
9 |
|
10 |
Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
|
11 |
|
@@ -78,11 +78,8 @@ In order for the checkout and store pages to appear translated, you need to crea
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
-
= 3.7.1 =
|
82 |
-
* Compatibility fixes for WooCommerce Bookings and WooCommerce Composite Products
|
83 |
-
* Fixed a typo in a function that caused a fatal error
|
84 |
|
85 |
-
= 3.7 =
|
86 |
* Added support for strings in different languages. Translated strings are not required to be in English (Requires WPML 3.3+)
|
87 |
* Fixed a compatibility issue with WooCommerce Bookings: bookings in all languages showing on calendar (requires WooCommerce Bookings 1.8+)
|
88 |
* Fixed a compatibility issue with WooCommerce Bookings: deleting a reservation did not delete translations too (requires WooCommerce Bookings 1.8+)
|
5 |
License: GPLv2
|
6 |
Requires at least: 3.0
|
7 |
Tested up to: 4.3
|
8 |
+
Stable tag: 3.7
|
9 |
|
10 |
Allows running fully multilingual e-commerce sites using WooCommerce and WPML.
|
11 |
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
81 |
|
82 |
+
= 3.6.7 =
|
83 |
* Added support for strings in different languages. Translated strings are not required to be in English (Requires WPML 3.3+)
|
84 |
* Fixed a compatibility issue with WooCommerce Bookings: bookings in all languages showing on calendar (requires WooCommerce Bookings 1.8+)
|
85 |
* Fixed a compatibility issue with WooCommerce Bookings: deleting a reservation did not delete translations too (requires WooCommerce Bookings 1.8+)
|
wpml-woocommerce.php
CHANGED
@@ -6,12 +6,12 @@
|
|
6 |
Author: OnTheGoSystems
|
7 |
Author URI: http://www.onthegosystems.com/
|
8 |
Text Domain: woocommerce-multilingual
|
9 |
-
Version: 3.7
|
10 |
*/
|
11 |
|
12 |
|
13 |
if(defined('WCML_VERSION')) return;
|
14 |
-
define('WCML_VERSION', '3.7
|
15 |
define('WCML_PLUGIN_PATH', dirname(__FILE__));
|
16 |
define('WCML_PLUGIN_FOLDER', basename(WCML_PLUGIN_PATH));
|
17 |
define('WCML_LOCALE_PATH',WCML_PLUGIN_PATH.'/locale');
|
6 |
Author: OnTheGoSystems
|
7 |
Author URI: http://www.onthegosystems.com/
|
8 |
Text Domain: woocommerce-multilingual
|
9 |
+
Version: 3.7
|
10 |
*/
|
11 |
|
12 |
|
13 |
if(defined('WCML_VERSION')) return;
|
14 |
+
define('WCML_VERSION', '3.7');
|
15 |
define('WCML_PLUGIN_PATH', dirname(__FILE__));
|
16 |
define('WCML_PLUGIN_FOLDER', basename(WCML_PLUGIN_PATH));
|
17 |
define('WCML_LOCALE_PATH',WCML_PLUGIN_PATH.'/locale');
|