CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.3.10

Version Description

(2020-12-22) = * Fixed: Brand disable/enable option.

Download this release

Release Info

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

Code changes from version 4.3.9 to 4.3.10

README.txt CHANGED
@@ -8,7 +8,7 @@ Google Product Review feed, product variations, rakuteen, shopping, skroutz, TSV
8
  Requires at least: 3.6
9
  Tested Up To: 5.6
10
  Requires PHP: 5.6
11
- Stable tag: 4.3.9
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
@@ -308,6 +308,9 @@ Using pro version:
308
 
309
  == Changelog ==
310
 
 
 
 
311
  = 4.3.9 (2020-12-20) =
312
  * Added: Google Dynamic Search Ads Template.
313
  * Added: Pinterest RSS board feed template.
8
  Requires at least: 3.6
9
  Tested Up To: 5.6
10
  Requires PHP: 5.6
11
+ Stable tag: 4.3.10
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
308
 
309
  == Changelog ==
310
 
311
+ = 4.3.10 (2020-12-22) =
312
+ * Fixed: Brand disable/enable option.
313
+
314
  = 4.3.9 (2020-12-20) =
315
  * Added: Google Dynamic Search Ads Template.
316
  * Added: Pinterest RSS board feed template.
includes/classes/class-woo-feed-products-v3.php CHANGED
@@ -779,27 +779,29 @@ class Woo_Feed_Products_v3
779
  'attribute_value',
780
  );
781
  foreach ( $this->products[ $this->pi ] as $attribute => $value ) {
782
- if ( in_array($attribute, $shippingAttr) ) {
783
-
784
- if ( 'tax_country' == $attribute ) {
 
785
  $t++;
786
  $tax[ $t ] .= $value . ':';
787
- } elseif ( 'tax_region' == $attribute ) {
788
  $tax[ $t ] .= $value . ':';
789
- } elseif ( 'tax_rate' == $attribute ) {
790
  $tax[ $t ] .= $value . ':';
791
- } elseif ( 'tax_ship' == $attribute ) {
792
  $tax[ $t ] .= $value . ':';
793
  }
794
 
795
- if ( 'shipping_country' == $attribute ) {
 
796
  $s++;
797
  $shipping[ $s ] .= $value . ':';
798
- } elseif ( 'shipping_service' == $attribute ) {
799
  $shipping[ $s ] .= $value . ':';
800
- } elseif ( 'shipping_price' == $attribute ) {
801
  $shipping[ $s ] .= $value . ':';
802
- } elseif ( 'shipping_region' == $attribute ) {
803
  $shipping[ $s ] .= $value . ':';
804
  }
805
 
@@ -809,11 +811,11 @@ class Woo_Feed_Products_v3
809
  }
810
 
811
  foreach ( $shipping as $key => $val ) {
812
- $this->products[ $this->pi ]['shipping(country:region:service:price)'] = $val;
813
  }
814
 
815
  foreach ( $tax as $key => $val ) {
816
- $this->products[ $this->pi ]['tax(country:region:rate:tax_ship)'] = $val;
817
  }
818
  }
819
 
779
  'attribute_value',
780
  );
781
  foreach ( $this->products[ $this->pi ] as $attribute => $value ) {
782
+ $trim_attribute_array = explode(" ", $attribute);
783
+ $csv_attribute = implode("_", $trim_attribute_array);
784
+ if ( in_array($csv_attribute, $shippingAttr) ) {
785
+ if ( 'tax_country' == $csv_attribute ) {
786
  $t++;
787
  $tax[ $t ] .= $value . ':';
788
+ } elseif ( 'tax_region' == $csv_attribute ) {
789
  $tax[ $t ] .= $value . ':';
790
+ } elseif ( 'tax_rate' == $csv_attribute ) {
791
  $tax[ $t ] .= $value . ':';
792
+ } elseif ( 'tax_ship' == $csv_attribute ) {
793
  $tax[ $t ] .= $value . ':';
794
  }
795
 
796
+
797
+ if ( 'shipping_country' == $csv_attribute ) {
798
  $s++;
799
  $shipping[ $s ] .= $value . ':';
800
+ } elseif ( 'shipping_service' == $csv_attribute ) {
801
  $shipping[ $s ] .= $value . ':';
802
+ } elseif ( 'shipping_price' == $csv_attribute ) {
803
  $shipping[ $s ] .= $value . ':';
804
+ } elseif ( 'shipping_region' == $csv_attribute ) {
805
  $shipping[ $s ] .= $value . ':';
806
  }
807
 
811
  }
812
 
813
  foreach ( $shipping as $key => $val ) {
814
+ $this->products[ $this->pi ]['shipping(country:region:service:price)'] = trim($val, ':');
815
  }
816
 
817
  foreach ( $tax as $key => $val ) {
818
+ $this->products[ $this->pi ]['tax(country:region:rate:tax_ship)'] = trim($val, ':');
819
  }
820
  }
821
 
includes/helper.php CHANGED
@@ -3079,6 +3079,14 @@ if ( ! function_exists( 'woo_feed_brand_taxonomy' ) ) {
3079
  * @since 4.3.6
3080
  */
3081
  function woo_feed_brand_taxonomy() {
 
 
 
 
 
 
 
 
3082
  $labels = array(
3083
  'name' => 'Brand by Woo Feed',
3084
  'singular_name' => 'Brand',
3079
  * @since 4.3.6
3080
  */
3081
  function woo_feed_brand_taxonomy() {
3082
+
3083
+ $settings = woo_feed_get_options( 'all' );
3084
+ $disable_brand = $settings['disable_brand'];
3085
+
3086
+ if ( $disable_brand == 'disable' ) {
3087
+ return false;
3088
+ }
3089
+
3090
  $labels = array(
3091
  'name' => 'Brand by Woo Feed',
3092
  'singular_name' => 'Brand',
woo-feed.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: WooCommerce Product 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.3.9
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
@@ -38,7 +38,7 @@ if ( ! defined( 'WOO_FEED_FREE_VERSION' ) ) {
38
  * @var string
39
  * @since 3.1.6
40
  */
41
- define( 'WOO_FEED_FREE_VERSION', '4.3.9' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
10
  * Plugin Name: WooCommerce Product 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.3.10
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
38
  * @var string
39
  * @since 3.1.6
40
  */
41
+ define( 'WOO_FEED_FREE_VERSION', '4.3.10' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {