CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.3.13

Version Description

(2020-12-27) = * Added: Parent Title, Parent URL, Add to cart link, SKU Id attribute. * Fixed: Category exclude issue solved.

Download this release

Release Info

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

Code changes from version 4.3.12 to 4.3.13

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.12
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
@@ -308,6 +308,10 @@ Using pro version:
308
 
309
  == Changelog ==
310
 
 
 
 
 
311
  = 4.3.12 (2020-12-24) =
312
  * Added: Debug feed file form in status page.
313
  * Fixed: Image url fatal error solved.
8
  Requires at least: 3.6
9
  Tested Up To: 5.6
10
  Requires PHP: 5.6
11
+ Stable tag: 4.3.13
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.13 (2020-12-27) =
312
+ * Added: Parent Title, Parent URL, Add to cart link, SKU Id attribute.
313
+ * Fixed: Category exclude issue solved.
314
+
315
  = 4.3.12 (2020-12-24) =
316
  * Added: Debug feed file form in status page.
317
  * Fixed: Image url fatal error solved.
includes/classes/class-woo-feed-dropdown.php CHANGED
@@ -181,14 +181,18 @@ class Woo_Feed_Dropdown {
181
  'child_category' => esc_html__( 'Child Category', 'woo-feed' ),
182
  'child_category_id' => esc_html__( 'Child Category ID', 'woo-feed' ),
183
  'product_type' => esc_html__( 'Product Local Category [Category Path]', 'woo-feed' ),
 
184
  'link' => esc_html__( 'Product URL', 'woo-feed' ),
 
185
  'canonical_link' => esc_html__( 'Canonical URL', 'woo-feed' ),
186
  'ex_link' => esc_html__( 'External Product URL', 'woo-feed' ),
187
  'condition' => esc_html__( 'Condition', 'woo-feed' ),
188
  'item_group_id' => esc_html__( 'Parent Id [Group Id]', 'woo-feed' ),
189
  'sku' => esc_html__( 'SKU', 'woo-feed' ),
 
190
  'parent_sku' => esc_html__( 'Parent SKU', 'woo-feed' ),
191
  'availability' => esc_html__( 'Availability', 'woo-feed' ),
 
192
  'quantity' => esc_html__( 'Quantity', 'woo-feed' ),
193
  'price' => esc_html__( 'Regular Price', 'woo-feed' ),
194
  'current_price' => esc_html__( 'Price', 'woo-feed' ),
181
  'child_category' => esc_html__( 'Child Category', 'woo-feed' ),
182
  'child_category_id' => esc_html__( 'Child Category ID', 'woo-feed' ),
183
  'product_type' => esc_html__( 'Product Local Category [Category Path]', 'woo-feed' ),
184
+ 'parent_title' => esc_html__( 'Parent Title', 'woo-feed' ),
185
  'link' => esc_html__( 'Product URL', 'woo-feed' ),
186
+ 'parent_link' => esc_html__( 'Parent URL', 'woo-feed' ),
187
  'canonical_link' => esc_html__( 'Canonical URL', 'woo-feed' ),
188
  'ex_link' => esc_html__( 'External Product URL', 'woo-feed' ),
189
  'condition' => esc_html__( 'Condition', 'woo-feed' ),
190
  'item_group_id' => esc_html__( 'Parent Id [Group Id]', 'woo-feed' ),
191
  'sku' => esc_html__( 'SKU', 'woo-feed' ),
192
+ 'sku_id' => esc_html__( 'SKU ID', 'woo-feed' ),
193
  'parent_sku' => esc_html__( 'Parent SKU', 'woo-feed' ),
194
  'availability' => esc_html__( 'Availability', 'woo-feed' ),
195
+ 'add_to_cart_link' => esc_html__( 'Add to Cart Link', 'woo-feed' ),
196
  'quantity' => esc_html__( 'Quantity', 'woo-feed' ),
197
  'price' => esc_html__( 'Regular Price', 'woo-feed' ),
198
  'current_price' => esc_html__( 'Price', 'woo-feed' ),
includes/classes/class-woo-feed-products-v3.php CHANGED
@@ -1475,6 +1475,26 @@ class Woo_Feed_Products_v3
1475
  return wp_strip_all_tags($this->remove_short_codes($product->get_name()));
1476
  }
1477
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1478
  /**
1479
  * Get Yoast Product Title
1480
  *
@@ -1946,6 +1966,26 @@ class Woo_Feed_Products_v3
1946
  return $product->get_permalink();
1947
  }
1948
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1949
  /**
1950
  * Get Canonical Link
1951
  * @param WC_Product $product
@@ -2234,6 +2274,21 @@ class Woo_Feed_Products_v3
2234
  return $product->get_sku();
2235
  }
2236
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2237
  /**
2238
  * Get Product Parent SKU
2239
  *
@@ -2276,6 +2331,19 @@ class Woo_Feed_Products_v3
2276
  }
2277
  }
2278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2279
  /**
2280
  * Get Product Quantity
2281
  *
1475
  return wp_strip_all_tags($this->remove_short_codes($product->get_name()));
1476
  }
1477
 
1478
+ /**
1479
+ * Get Parent Product Title
1480
+ *
1481
+ * @param WC_Product $product
1482
+ *
1483
+ * @since 4.3.13
1484
+ * @author Nazrul Islam Nayan
1485
+ * @return mixed
1486
+ */
1487
+ protected function parent_title( $product ) {
1488
+ if( $product->is_type( 'variation' ) ) {
1489
+ $id = $product->get_parent_id();
1490
+ $title = get_the_title($id);
1491
+ }else {
1492
+ $title = $product->get_name();
1493
+ }
1494
+
1495
+ return wp_strip_all_tags($this->remove_short_codes($title));
1496
+ }
1497
+
1498
  /**
1499
  * Get Yoast Product Title
1500
  *
1966
  return $product->get_permalink();
1967
  }
1968
 
1969
+ /**
1970
+ * Get Parent Product URL
1971
+ *
1972
+ * @param WC_Product $product
1973
+ *
1974
+ * @since 4.3.13
1975
+ * @author Nazrul Islam Nayan
1976
+ * @return string
1977
+ */
1978
+ protected function parent_link( $product ) {
1979
+ if( $product->is_type( 'variation' ) ) {
1980
+ $id = $product->get_parent_id();
1981
+ $link = get_permalink($id);
1982
+ }else {
1983
+ $link = $this->link($product);
1984
+ }
1985
+
1986
+ return $link;
1987
+ }
1988
+
1989
  /**
1990
  * Get Canonical Link
1991
  * @param WC_Product $product
2274
  return $product->get_sku();
2275
  }
2276
 
2277
+ /**
2278
+ * Get Product SKU ID. It should come with after merging of sku and product id with '_' sign.
2279
+ *
2280
+ * @param WC_Product $product
2281
+ *
2282
+ * @since 4.3.13
2283
+ * @author Nazrul Islam Nayan
2284
+ * @return string
2285
+ */
2286
+ protected function sku_id( $product ) {
2287
+ $sku = !empty($product->get_sku()) ? $product->get_sku() . '_' : '';
2288
+
2289
+ return $sku . $product->get_id();
2290
+ }
2291
+
2292
  /**
2293
  * Get Product Parent SKU
2294
  *
2331
  }
2332
  }
2333
 
2334
+ /**
2335
+ * Get Product Add to Cart Link
2336
+ *
2337
+ * @param WC_Product $product
2338
+ *
2339
+ * @since 4.3.13
2340
+ * @author Nazrul Islam Nayan
2341
+ * @return string
2342
+ */
2343
+ protected function add_to_cart_link( $product ) {
2344
+ return get_home_url() . '/?add-to-cart=' . $product->get_id();
2345
+ }
2346
+
2347
  /**
2348
  * Get Product Quantity
2349
  *
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.12
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.12' );
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.13
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.13' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {