Version Description
(2020-09-01) = * Added: Parent Category Id attribute added.
Download this release
Release Info
Developer | wahid0003 |
Plugin | CTX Feed – WooCommerce Product Feed Manager Plugin |
Version | 3.7.10 |
Comparing to | |
See all releases |
Code changes from version 3.7.9 to 3.7.10
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.7.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -308,6 +308,9 @@ Using pro version:
|
|
308 |
|
309 |
== Changelog ==
|
310 |
|
|
|
|
|
|
|
311 |
= 3.7.9 (2020-08-31) =
|
312 |
* Added: Facebook inventory attribute added to Facebook catalog template as default.
|
313 |
|
5 |
Requires at least: 3.6
|
6 |
Tested Up To: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 3.7.10
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
308 |
|
309 |
== Changelog ==
|
310 |
|
311 |
+
= 3.7.10 (2020-09-01) =
|
312 |
+
* Added: Parent Category Id attribute added.
|
313 |
+
|
314 |
= 3.7.9 (2020-08-31) =
|
315 |
* Added: Facebook inventory attribute added to Facebook catalog template as default.
|
316 |
|
includes/classes/class-woo-feed-dropdown.php
CHANGED
@@ -177,6 +177,7 @@ class Woo_Feed_Dropdown {
|
|
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 |
'product_type' => esc_html__( 'Product Local Category [Category Path]', 'woo-feed' ),
|
181 |
'link' => esc_html__( 'Product URL', 'woo-feed' ),
|
182 |
'canonical_link' => esc_html__( 'Canonical URL', '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' ),
|
includes/classes/class-woo-feed-products-v3.php
CHANGED
@@ -1557,6 +1557,37 @@ class Woo_Feed_Products_v3
|
|
1557 |
return $main_category instanceof WP_Term ? $main_category->name : '';
|
1558 |
}
|
1559 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1560 |
/**
|
1561 |
* Get Product Categories
|
1562 |
*
|
1557 |
return $main_category instanceof WP_Term ? $main_category->name : '';
|
1558 |
}
|
1559 |
|
1560 |
+
/**
|
1561 |
+
* Get Product Main Category ID
|
1562 |
+
*
|
1563 |
+
* @param WC_Product $product
|
1564 |
+
*
|
1565 |
+
* @return string
|
1566 |
+
*
|
1567 |
+
*/
|
1568 |
+
protected function primary_category_id($product)
|
1569 |
+
{
|
1570 |
+
$id = $product->get_id();
|
1571 |
+
if ($product->is_type('variation')) {
|
1572 |
+
$id = $product->get_parent_id();
|
1573 |
+
}
|
1574 |
+
$wpseo_primary_term = false;
|
1575 |
+
$main_category = '';
|
1576 |
+
if (class_exists('WPSEO_Primary_Term')) {
|
1577 |
+
$wpseo_primary_term = new WPSEO_Primary_Term('product_cat', $id);
|
1578 |
+
$main_category = $wpseo_primary_term->get_primary_term();
|
1579 |
+
$main_category = get_term($main_category, 'product_cat');
|
1580 |
+
}
|
1581 |
+
if (!($wpseo_primary_term instanceof WPSEO_Primary_Term) || empty($main_category)) {
|
1582 |
+
$term = wp_get_post_terms($id, 'product_cat');
|
1583 |
+
if (!is_wp_error($term) && !empty($term)) {
|
1584 |
+
$main_category = $term[0];
|
1585 |
+
}
|
1586 |
+
}
|
1587 |
+
|
1588 |
+
return $main_category instanceof WP_Term ? $main_category->term_id : '';
|
1589 |
+
}
|
1590 |
+
|
1591 |
/**
|
1592 |
* Get Product Categories
|
1593 |
*
|
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.7.
|
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.7.
|
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.7.10
|
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.7.10' );
|
43 |
}
|
44 |
|
45 |
if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
|