CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.4.14

Version Description

(2021-07-16) = * Fixed: Custom Attributes not adding to variation title issue fixed. * Fixed: Shipping settings label updated. * Fixed: Brand taxonomies not available inot product attribute list issue fixed.

Download this release

Release Info

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

Code changes from version 4.4.13 to 4.4.14

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.13
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -516,6 +516,11 @@ Using pro version:
516
 
517
  == Changelog ==
518
 
 
 
 
 
 
519
  = 4.4.13 (2021-07-12) =
520
  * Added: Availability date attribute has been added.
521
  * Added: Woocommerce Germanized gtin,mpn attribute has been added.
5
  Requires at least: 3.6
6
  Tested Up To: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 4.4.14
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.14 (2021-07-16) =
520
+ * Fixed: Custom Attributes not adding to variation title issue fixed.
521
+ * Fixed: Shipping settings label updated.
522
+ * Fixed: Brand taxonomies not available inot product attribute list issue fixed.
523
+
524
  = 4.4.13 (2021-07-12) =
525
  * Added: Availability date attribute has been added.
526
  * Added: Woocommerce Germanized gtin,mpn attribute has been added.
admin/partials/woo-feed-settings.php CHANGED
@@ -130,7 +130,7 @@ $settings = woo_feed_get_options( 'all' );
130
  </td>
131
  </tr>
132
  <tr>
133
- <th scope="row"><label for="allow_all_shipping"><?php esc_html_e( 'Add shipping costs for all countries to feed (Google Shopping / Facebook only)', 'woo-feed' ); ?></label></th>
134
  <td>
135
  <label for="allow_all_shipping">
136
  <select name="allow_all_shipping" id="allow_all_shipping">
@@ -154,7 +154,7 @@ $settings = woo_feed_get_options( 'all' );
154
  </td>
155
  </tr>
156
  <tr>
157
- <th scope="row"><label for="only_local_pickup_shipping"><?php esc_html_e( 'Remove the local pickup shipping zone from feed (Google Shopping / Facebook only)', 'woo-feed' ); ?></label></th>
158
  <td>
159
  <label for="only_local_pickup_shipping">
160
  <select name="only_local_pickup_shipping" id="only_local_pickup_shipping">
130
  </td>
131
  </tr>
132
  <tr>
133
+ <th scope="row"><label for="allow_all_shipping"><?php esc_html_e( 'Add Shipping/Tax info for all countries to feed (Google Shopping)', 'woo-feed' ); ?></label></th>
134
  <td>
135
  <label for="allow_all_shipping">
136
  <select name="allow_all_shipping" id="allow_all_shipping">
154
  </td>
155
  </tr>
156
  <tr>
157
+ <th scope="row"><label for="only_local_pickup_shipping"><?php esc_html_e( 'Remove the local pickup shipping zone from feed (Google Shopping)', 'woo-feed' ); ?></label></th>
158
  <td>
159
  <label for="only_local_pickup_shipping">
160
  <select name="only_local_pickup_shipping" id="only_local_pickup_shipping">
includes/classes/class-woo-feed-dropdown.php CHANGED
@@ -241,12 +241,9 @@ class Woo_Feed_Dropdown {
241
  $default_excludes = array_merge( $default_excludes, $user_excludes );
242
  }
243
 
244
- //get only woo feed brand taxonomy data, should be removed when all taxonomy should be shown
245
- $data = [ 'woo-feed-brand' ];
246
-
247
  if ( count( $data ) ) {
248
  foreach ( $data as $key => $value ) {
249
- if ( in_array( $value, $default_excludes ) || strpos( $value, 'pa_' ) !== false ) {
250
  continue;
251
  }
252
  $label = isset( $wp_taxonomies[ $value ] ) ? $wp_taxonomies[ $value ]->label . " [{$value}]" : $value;
241
  $default_excludes = array_merge( $default_excludes, $user_excludes );
242
  }
243
 
 
 
 
244
  if ( count( $data ) ) {
245
  foreach ( $data as $key => $value ) {
246
+ if ( in_array($value, $default_excludes, true) || strpos( $value, 'pa_' ) !== false ) {
247
  continue;
248
  }
249
  $label = isset( $wp_taxonomies[ $value ] ) ? $wp_taxonomies[ $value ]->label . " [{$value}]" : $value;
includes/classes/class-woo-feed-products-v3.php CHANGED
@@ -883,24 +883,12 @@ class Woo_Feed_Products_v3
883
  if ( 'subscription_amount' == $value ) {
884
  $subscription .= ':'.$output;
885
  }
886
-
887
- // echo "<pre>";print_r($this->products[ $this->pi ]);die();
888
-
889
- // unset($this->products[ $this->pi ][$value]);
890
-
891
  }
892
 
893
  if ( 0 < $pd ) {
894
  $this->products[ $this->pi ]["product detail"] = $product_detail;
895
  }
896
 
897
- // if ( 0 < $s ) {
898
- // $this->products[ $this->pi ]["shipping"] = $shipping;
899
- // }
900
- // if ( 0 < $t ) {
901
- // $this->products[ $this->pi ]["tax"] = $tax;
902
- // }
903
-
904
  if ( 0 < $sub ) {
905
  $this->products[ $this->pi ]["subscription cost"] = $subscription;
906
 
@@ -1502,6 +1490,20 @@ class Woo_Feed_Products_v3
1502
  protected function title( $product ) {
1503
  $title = wp_strip_all_tags($this->remove_short_codes($product->get_name()));
1504
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1505
  return apply_filters('woo_feed_filter_product_title', $title, $product, $this->config);
1506
  }
1507
 
@@ -1517,7 +1519,7 @@ class Woo_Feed_Products_v3
1517
  protected function parent_title( $product ) {
1518
  if ( $product->is_type( 'variation' ) ) {
1519
  $product = wc_get_product($product->get_parent_id());
1520
- $title = $this->title($product);
1521
  }else {
1522
  $title = $this->title($product);
1523
  }
883
  if ( 'subscription_amount' == $value ) {
884
  $subscription .= ':'.$output;
885
  }
 
 
 
 
 
886
  }
887
 
888
  if ( 0 < $pd ) {
889
  $this->products[ $this->pi ]["product detail"] = $product_detail;
890
  }
891
 
 
 
 
 
 
 
 
892
  if ( 0 < $sub ) {
893
  $this->products[ $this->pi ]["subscription cost"] = $subscription;
894
 
1490
  protected function title( $product ) {
1491
  $title = wp_strip_all_tags($this->remove_short_codes($product->get_name()));
1492
 
1493
+ // Add all available variation attributes to variation title.
1494
+ if($product->is_type('variation') && !empty($product->get_attributes())){
1495
+ $title = $this->parent_title($product);
1496
+ $attributes=[];
1497
+ foreach ($product->get_attributes() as $slug=>$value){
1498
+ $attribute=$product->get_attribute($slug);
1499
+ if(empty($attribute)){
1500
+ continue;
1501
+ }
1502
+ $attributes[$slug]=$attribute;
1503
+ }
1504
+ $title .=" - ".implode(', ',$attributes);
1505
+ }
1506
+
1507
  return apply_filters('woo_feed_filter_product_title', $title, $product, $this->config);
1508
  }
1509
 
1519
  protected function parent_title( $product ) {
1520
  if ( $product->is_type( 'variation' ) ) {
1521
  $product = wc_get_product($product->get_parent_id());
1522
+ $title = wp_strip_all_tags($this->remove_short_codes($product->get_name()));
1523
  }else {
1524
  $title = $this->title($product);
1525
  }
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.13
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
@@ -42,7 +42,7 @@ if ( ! defined( 'WOO_FEED_FREE_VERSION' ) ) {
42
  * @var string
43
  * @since 3.1.6
44
  */
45
- define( 'WOO_FEED_FREE_VERSION', '4.4.13' );
46
  }
47
 
48
  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.14
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
42
  * @var string
43
  * @since 3.1.6
44
  */
45
+ define( 'WOO_FEED_FREE_VERSION', '4.4.14' );
46
  }
47
 
48
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {