CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.4.11

Version Description

(2021-07-02) = * Added: Shipping handling time and transit time attributes added. * Fixed: Variations can't be dragged separately issue has been fixed.

Download this release

Release Info

Developer wahid0003
Plugin Icon 128x128 CTX Feed – WooCommerce Product Feed Manager Plugin
Version 4.4.11
Comparing to
See all releases

Code changes from version 4.4.10 to 4.4.11

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Product Feed, WooCommerce, Google Shopping, Google Merchant, Facebook Cata
5
  Requires at least: 3.6
6
  Tested Up To: 5.7
7
  Requires PHP: 5.6
8
- Stable tag: 4.4.10
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -516,6 +516,10 @@ Using pro version:
516
 
517
  == Changelog ==
518
 
 
 
 
 
519
  = 4.4.10 (2021-07-01) =
520
  * Fixed: Gtin identifiers with attribute addition.
521
 
5
  Requires at least: 3.6
6
  Tested Up To: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 4.4.11
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
516
 
517
  == Changelog ==
518
 
519
+ = 4.4.11 (2021-07-02) =
520
+ * Added: Shipping handling time and transit time attributes added.
521
+ * Fixed: Variations can't be dragged separately issue has been fixed.
522
+
523
  = 4.4.10 (2021-07-01) =
524
  * Fixed: Gtin identifiers with attribute addition.
525
 
includes/classes/class-woo-feed-default-attributes.php CHANGED
@@ -649,6 +649,10 @@ class Woo_Feed_Default_Attributes {
649
  'tax_ship' => 'Tax Ship[tax_ship]',
650
  'tax_category' => 'Tax[tax_category]',
651
  'shipping' => 'Shipping',
 
 
 
 
652
  'weight' => 'Shipping Weight[shipping_weight]',
653
  'length' => 'Shipping Length[shipping_length]',
654
  'width' => 'Shipping Width[shipping_width]',
@@ -721,8 +725,6 @@ class Woo_Feed_Default_Attributes {
721
  '---15' => '',
722
  '--16' => 'Shopping Action Attributes',
723
  'sell_on_google_quantity' => 'Number of Product Sold On Google [sell_on_google_quantity]',
724
- 'min_handling_time' => 'Minimum Handling Time [min_handling_time]',
725
- 'max_handling_time' => 'Maximum Handling Time [max_handling_time]',
726
  'return_address_label' => 'Return Address [return_address_label]',
727
  'return_policy_label' => 'Return Policy [return_policy_label]',
728
  'google_funded_promotion_eligibility' => 'Google Funded Promotion Eligibility [google_funded_promotion_eligibility]',
649
  'tax_ship' => 'Tax Ship[tax_ship]',
650
  'tax_category' => 'Tax[tax_category]',
651
  'shipping' => 'Shipping',
652
+ 'min_handling_time' => 'Min Handling Time[min_handling_time]',
653
+ 'max_handling_time' => 'Max Handling Time[max_handling_time]',
654
+ 'min_transit_time' => 'Min Transit Time[min_transit_time]',
655
+ 'max_transit_time' => 'Max Transit Time[max_transit_time]',
656
  'weight' => 'Shipping Weight[shipping_weight]',
657
  'length' => 'Shipping Length[shipping_length]',
658
  'width' => 'Shipping Width[shipping_width]',
725
  '---15' => '',
726
  '--16' => 'Shopping Action Attributes',
727
  'sell_on_google_quantity' => 'Number of Product Sold On Google [sell_on_google_quantity]',
 
 
728
  'return_address_label' => 'Return Address [return_address_label]',
729
  'return_policy_label' => 'Return Policy [return_policy_label]',
730
  'google_funded_promotion_eligibility' => 'Google Funded Promotion Eligibility [google_funded_promotion_eligibility]',
includes/classes/class-woo-feed-products-v3.php CHANGED
@@ -125,6 +125,10 @@ class Woo_Feed_Products_v3
125
  'shipping_postal_code',
126
  'shipping_service',
127
  'shipping_price',
 
 
 
 
128
  'tax_country',
129
  'tax_region',
130
  'tax_rate',
125
  'shipping_postal_code',
126
  'shipping_service',
127
  'shipping_price',
128
+ 'min_handling_time',
129
+ 'max_handling_time',
130
+ 'min_transit_time',
131
+ 'max_transit_time',
132
  'tax_country',
133
  'tax_region',
134
  'tax_rate',
includes/classes/class-woo-feed-shipping.php CHANGED
@@ -355,6 +355,17 @@ class Woo_Feed_Shipping {
355
  $shipping_child = stripslashes( $shipping_child );
356
  }
357
 
 
 
 
 
 
 
 
 
 
 
 
358
  // when loop is in last ride skip inserting labels, as it insert label with empty value
359
  $feedBody .= "$shipping_child";
360
  if ( isset($shipping_child) && ! empty($shipping_child) && $i !== $len - 1 ) {
355
  $shipping_child = stripslashes( $shipping_child );
356
  }
357
 
358
+ $times = [ 'min_handling_time', 'max_handling_time', 'min_transit_time', 'max_transit_time' ];
359
+ $merchant_attributes = $this->config['mattributes'];
360
+ foreach ( $times as $key => $shipping_item_attr ) {
361
+ if ( in_array($shipping_item_attr,$merchant_attributes,true) ) {
362
+ $m_key = array_search($shipping_item_attr, $merchant_attributes,true);
363
+ $shipping_value = isset($this->config['default'][ $m_key ]) ? $this->config['default'][ $m_key ] : "";
364
+ $shipping_child .= '<g:' . $shipping_item_attr . '>' . $shipping_value . '</g:' . $shipping_item_attr . '>';
365
+ $shipping_child = stripslashes( $shipping_child );
366
+ }
367
+ }
368
+
369
  // when loop is in last ride skip inserting labels, as it insert label with empty value
370
  $feedBody .= "$shipping_child";
371
  if ( isset($shipping_child) && ! empty($shipping_child) && $i !== $len - 1 ) {
includes/helper.php CHANGED
@@ -2818,8 +2818,9 @@ if ( ! function_exists('woo_feed_add_custom_identifier_for_variation') ) {
2818
  );
2819
  }
2820
  echo '</div></div>';
2821
- }
2822
- }
 
2823
  }
2824
  add_action( 'woocommerce_product_after_variable_attributes', 'woo_feed_add_custom_identifier_for_variation', 10, 3 );
2825
  }
2818
  );
2819
  }
2820
  echo '</div></div>';
2821
+ }
2822
+ echo '</div>';
2823
+ }
2824
  }
2825
  add_action( 'woocommerce_product_after_variable_attributes', 'woo_feed_add_custom_identifier_for_variation', 10, 3 );
2826
  }
woo-feed.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: CTX Feed
11
  * Plugin URI: https://webappick.com/
12
  * Description: Easily generate woocommerce product feed for any marketing channel like Google Shopping(Merchant), Facebook Remarketing, Bing, eBay & more. Support 100+ Merchants.
13
- * Version: 4.4.10
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
@@ -39,7 +39,7 @@ if ( ! defined( 'WOO_FEED_FREE_VERSION' ) ) {
39
  * @var string
40
  * @since 3.1.6
41
  */
42
- define( 'WOO_FEED_FREE_VERSION', '4.4.10' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
10
  * Plugin Name: CTX Feed
11
  * Plugin URI: https://webappick.com/
12
  * Description: Easily generate woocommerce product feed for any marketing channel like Google Shopping(Merchant), Facebook Remarketing, Bing, eBay & more. Support 100+ Merchants.
13
+ * Version: 4.4.11
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
39
  * @var string
40
  * @since 3.1.6
41
  */
42
+ define( 'WOO_FEED_FREE_VERSION', '4.4.11' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {