CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.8.7

Version Description

(2020-09-28) = * Added: Child Category and Child Category id option to feed. * Tweak: Profit share template new structure.

Download this release

Release Info

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

Code changes from version 3.8.6 to 3.8.7

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags:product feed,woocommerce product feed,google shopping feed,google shopping,
5
  Requires at least: 3.6
6
  Tested Up To: 5.5
7
  Requires PHP: 5.6
8
- Stable tag: 3.8.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -308,6 +308,10 @@ Using pro version:
308
 
309
  == Changelog ==
310
 
 
 
 
 
311
  = 3.8.6 (2020-09-27) =
312
  * Tweak: Action button's label styling.
313
 
5
  Requires at least: 3.6
6
  Tested Up To: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: 3.8.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
308
 
309
  == Changelog ==
310
 
311
+ = 3.8.7 (2020-09-28) =
312
+ * Added: `Child Category` and `Child Category id` option to feed.
313
+ * Tweak: Profit share template new structure.
314
+
315
  = 3.8.6 (2020-09-27) =
316
  * Tweak: Action button's label styling.
317
 
includes/classes/class-woo-feed-dropdown.php CHANGED
@@ -176,8 +176,10 @@ class Woo_Feed_Dropdown {
176
  'title' => esc_html__( 'Product Title', 'woo-feed' ),
177
  'description' => esc_html__( 'Product Description', 'woo-feed' ),
178
  'short_description' => esc_html__( 'Product Short Description', 'woo-feed' ),
179
- 'primary_category' => esc_html__( 'Primary Category', 'woo-feed' ),
180
- 'primary_category_id' => esc_html__( 'Primary Category ID', 'woo-feed' ),
 
 
181
  'product_type' => esc_html__( 'Product Local Category [Category Path]', 'woo-feed' ),
182
  'link' => esc_html__( 'Product URL', 'woo-feed' ),
183
  'canonical_link' => esc_html__( 'Canonical URL', 'woo-feed' ),
176
  'title' => esc_html__( 'Product Title', 'woo-feed' ),
177
  'description' => esc_html__( 'Product Description', 'woo-feed' ),
178
  'short_description' => esc_html__( 'Product Short Description', 'woo-feed' ),
179
+ 'primary_category' => esc_html__( 'Parent Category', 'woo-feed' ),
180
+ 'primary_category_id' => esc_html__( 'Parent Category ID', '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
  'link' => esc_html__( 'Product URL', 'woo-feed' ),
185
  'canonical_link' => esc_html__( 'Canonical URL', 'woo-feed' ),
includes/classes/class-woo-feed-products-v3.php CHANGED
@@ -1592,6 +1592,36 @@ class Woo_Feed_Products_v3
1592
  return $main_category instanceof WP_Term ? $main_category->term_id : '';
1593
  }
1594
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1595
  /**
1596
  * Get Product Categories
1597
  *
1592
  return $main_category instanceof WP_Term ? $main_category->term_id : '';
1593
  }
1594
 
1595
+ /**
1596
+ * Get Product Child Category
1597
+ *
1598
+ * @param WC_Product $product
1599
+ *
1600
+ * @return string
1601
+ */
1602
+ protected function child_category( $product ) {
1603
+ $id = $product->get_id();
1604
+ $terms = get_the_terms( $id, 'product_cat' );
1605
+ $last_cat = ! empty($terms) && is_array($terms) ? end($terms) : [];
1606
+ $child_category = isset($last_cat->name) && !empty($last_cat->name) ? $last_cat->name : '';
1607
+
1608
+ return $child_category;
1609
+ }
1610
+
1611
+ /**
1612
+ * Get Product Child Category ID
1613
+ *
1614
+ * @param WC_Product $product
1615
+ *
1616
+ * @return string
1617
+ */
1618
+ protected function child_category_id( $product ) {
1619
+ $id = $product->get_id();
1620
+ $cat_ids = $product->get_category_ids();
1621
+
1622
+ return ! empty($cat_ids) && is_array($cat_ids) ? end($cat_ids) : '';
1623
+ }
1624
+
1625
  /**
1626
  * Get Product Categories
1627
  *
includes/feeds/merchant_templates.php CHANGED
@@ -7620,14 +7620,14 @@ return array(
7620
  'limit' => array('','','','','','','','','','test',),
7621
  ),
7622
  'profit_share' => array(
7623
- 'mattributes' => array('Cod categorie','Categorie','Categorie parinte','Producator','Cod producator','Model','Cod produs','Nume','Descriere','Link produs','Imagine produs','Pret fara TVA','Pret cu TVA','Moneda','Status','Disponibilitate','Livrare gratuita',),
7624
- 'prefix' => array('','','','','','','','','','','','','','','','','',),
7625
- 'type' => array('attribute','attribute','attribute','pattern','attribute','attribute','attribute','attribute','attribute','attribute','attribute','attribute','attribute','pattern','pattern','attribute','pattern',),
7626
- 'attributes' => array('primary_category_id','product_type','primary_category','','','','id','title','description','link','image','price','price_with_tax','','','availability','',),
7627
- 'default' => array('','','','','','','','Localhost','','','','','','','1','','0',),
7628
- 'suffix' => array('','','','','','','','','','','','','','','','','',),
7629
- 'output_type' => array('1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1',),
7630
- 'limit' => array('','','','','','','','','','','','','','','','','',),
7631
  ),
7632
  );
7633
  // End of file merchant_templates.php
7620
  'limit' => array('','','','','','','','','','test',),
7621
  ),
7622
  'profit_share' => array(
7623
+ 'mattributes' => array('Cod categorie','Categorie','Categorie parinte','Producator','Cod producator','Model','Cod produs','Nume ','Descriere','Link produs','Imagine produs','Pret fara TVA','Pret cu TVA','Pret cu discount fara TVA','Moneda','Disponibilitate','Livrare gratuita','Cadou inclus','Status','ID categorie parinte',),
7624
+ 'prefix' => array('','','','','','','','','','','','','','','','','','','','',),
7625
+ 'type' => array('attribute','attribute','attribute','attribute','pattern','attribute','attribute','attribute','attribute','attribute','attribute','attribute','attribute','attribute','attribute','attribute','pattern','pattern','pattern','attribute',),
7626
+ 'attributes' => array('child_category','child_category_id','primary_category','','','sku','id','title','description','link','image','current_price','current_price_with_tax','sale_price','store_currency','availability','','','','primary_category_id',),
7627
+ 'default' => array('','','','','','','','Develop-pro','','','','','','','','','1','0','1','',),
7628
+ 'suffix' => array('','','','','','','','','','','','','','','','','','','','',),
7629
+ 'output_type' => array('1','1','1','1','1','1','1','1','1','1','1','6','6','6','1','1','1','1','1','1',),
7630
+ 'limit' => array('','','','','','','','','','','','','','','','','','','','',),
7631
  ),
7632
  );
7633
  // End of file merchant_templates.php
woo-feed.php CHANGED
@@ -11,7 +11,7 @@
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
  *
14
- * Version: 3.8.6
15
  * Author: WebAppick
16
  * Author URI: https://webappick.com/
17
  * 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', '3.8.6' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
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
  *
14
+ * Version: 3.8.7
15
  * Author: WebAppick
16
  * Author URI: https://webappick.com/
17
  * License: GPL v2
39
  * @var string
40
  * @since 3.1.6
41
  */
42
+ define( 'WOO_FEED_FREE_VERSION', '3.8.7' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {