Version Description
(2021-06-16) = * Added: Google installment attributes added. * Added: Unit price attributes added.
Download this release
Release Info
Developer | wahid0003 |
Plugin | CTX Feed – WooCommerce Product Feed Manager Plugin |
Version | 4.4.0 |
Comparing to | |
See all releases |
Code changes from version 4.3.101 to 4.4.0
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.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -501,6 +501,10 @@ Using pro version:
|
|
501 |
|
502 |
== Changelog ==
|
503 |
|
|
|
|
|
|
|
|
|
504 |
= 4.3.101 (2021-06-16) =
|
505 |
* Tweak: Added filter for schema description.
|
506 |
* Fixed: Upgrade compatibility for identifier issue fixed.
|
5 |
Requires at least: 3.6
|
6 |
Tested Up To: 5.7
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 4.4.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
501 |
|
502 |
== Changelog ==
|
503 |
|
504 |
+
= 4.4.0 (2021-06-16) =
|
505 |
+
* Added: Google installment attributes added.
|
506 |
+
* Added: Unit price attributes added.
|
507 |
+
|
508 |
= 4.3.101 (2021-06-16) =
|
509 |
* Tweak: Added filter for schema description.
|
510 |
* Fixed: Upgrade compatibility for identifier issue fixed.
|
includes/classes/class-woo-feed-dropdown.php
CHANGED
@@ -569,13 +569,25 @@ class Woo_Feed_Dropdown {
|
|
569 |
if ( class_exists( 'WC_Subscriptions' ) ) {
|
570 |
$attributes = array_merge( $attributes,
|
571 |
[
|
572 |
-
'subscription_period'
|
573 |
-
'subscription_period_interval'
|
574 |
-
'subscription_amount'
|
|
|
|
|
575 |
] );
|
576 |
}
|
577 |
-
|
578 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
579 |
$attributes['--2'] = esc_html__( 'Image Attributes', 'woo-feed' );
|
580 |
$attributes = $attributes + array(
|
581 |
'image' => esc_html__( 'Main Image', 'woo-feed' ),
|
569 |
if ( class_exists( 'WC_Subscriptions' ) ) {
|
570 |
$attributes = array_merge( $attributes,
|
571 |
[
|
572 |
+
'subscription_period' => esc_html__( 'Subscription Period', 'woo-feed' ),
|
573 |
+
'subscription_period_interval' => esc_html__( 'Subscription Period Interval', 'woo-feed' ),
|
574 |
+
'subscription_amount' => esc_html__( 'Subscription Amount', 'woo-feed' ),
|
575 |
+
'installment_months' => esc_html__( 'Installment Months', 'woo-feed' ),
|
576 |
+
'installment_amount' => esc_html__( 'Installment Amount', 'woo-feed' ),
|
577 |
] );
|
578 |
}
|
579 |
+
|
580 |
+
if ( class_exists( 'WooCommerce_Germanized' ) ) {
|
581 |
+
$attributes = array_merge(
|
582 |
+
$attributes,
|
583 |
+
array(
|
584 |
+
'unit_price_measure' => esc_html__( 'Unit Price Measure', 'woo-feed' ),
|
585 |
+
'unit_price_base_measure' => esc_html__( 'Unit Price Base Measure', 'woo-feed' ),
|
586 |
+
)
|
587 |
+
);
|
588 |
+
}
|
589 |
+
|
590 |
+
// Image Attributes.
|
591 |
$attributes['--2'] = esc_html__( 'Image Attributes', 'woo-feed' );
|
592 |
$attributes = $attributes + array(
|
593 |
'image' => esc_html__( 'Main Image', 'woo-feed' ),
|
includes/classes/class-woo-feed-products-v3.php
CHANGED
@@ -3315,7 +3315,13 @@ class Woo_Feed_Products_v3
|
|
3315 |
|
3316 |
$separator = apply_filters('woo_feed_product_taxonomy_term_list_separator', ',', $this->config, $product);
|
3317 |
|
3318 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
3319 |
|
3320 |
return apply_filters('woo_feed_filter_product_taxonomy', $getproducttaxonomy, $product, $this->config);
|
3321 |
}
|
@@ -3546,6 +3552,7 @@ class Woo_Feed_Products_v3
|
|
3546 |
}
|
3547 |
return '';
|
3548 |
}
|
|
|
3549 |
/**
|
3550 |
* Get Subscription period interval
|
3551 |
*
|
@@ -3574,4 +3581,69 @@ class Woo_Feed_Products_v3
|
|
3574 |
protected function subscription_amount( $product ) {
|
3575 |
return $this->price($product);
|
3576 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3577 |
}
|
3315 |
|
3316 |
$separator = apply_filters('woo_feed_product_taxonomy_term_list_separator', ',', $this->config, $product);
|
3317 |
|
3318 |
+
$term_list = get_the_term_list($id, $taxonomy, '', $separator, '');
|
3319 |
+
|
3320 |
+
if (get_class( $term_list ) === 'WP_Error'){
|
3321 |
+
$term_list = '';
|
3322 |
+
}
|
3323 |
+
|
3324 |
+
$getproducttaxonomy = wp_strip_all_tags($term_list);
|
3325 |
|
3326 |
return apply_filters('woo_feed_filter_product_taxonomy', $getproducttaxonomy, $product, $this->config);
|
3327 |
}
|
3552 |
}
|
3553 |
return '';
|
3554 |
}
|
3555 |
+
|
3556 |
/**
|
3557 |
* Get Subscription period interval
|
3558 |
*
|
3581 |
protected function subscription_amount( $product ) {
|
3582 |
return $this->price($product);
|
3583 |
}
|
3584 |
+
|
3585 |
+
/**
|
3586 |
+
* Get Installment Amount
|
3587 |
+
*
|
3588 |
+
* @param WC_Product $product
|
3589 |
+
*
|
3590 |
+
* @return mixed
|
3591 |
+
* @since 4.3.101
|
3592 |
+
*/
|
3593 |
+
protected function installment_amount( $product ) {
|
3594 |
+
return $this->price( $product );
|
3595 |
+
}
|
3596 |
+
|
3597 |
+
/**
|
3598 |
+
* Get Installment Months
|
3599 |
+
*
|
3600 |
+
* @param WC_Product $product
|
3601 |
+
*
|
3602 |
+
* @return mixed
|
3603 |
+
* @since 4.3.101
|
3604 |
+
*/
|
3605 |
+
protected function installment_months( $product ) {
|
3606 |
+
if ( class_exists( 'WC_Subscriptions' ) ) {
|
3607 |
+
return $this->getProductMeta( $product, '_subscription_length' );
|
3608 |
+
}
|
3609 |
+
return '';
|
3610 |
+
}
|
3611 |
+
|
3612 |
+
|
3613 |
+
/**
|
3614 |
+
* Get Installment Amount
|
3615 |
+
*
|
3616 |
+
* @param WC_Product $product
|
3617 |
+
*
|
3618 |
+
* @return mixed
|
3619 |
+
* @since 3.6.3
|
3620 |
+
*/
|
3621 |
+
protected function unit_price_measure( $product ) {
|
3622 |
+
if ( class_exists( 'WooCommerce_Germanized' ) ) {
|
3623 |
+
$unit = $this->getProductMeta( $product, '_unit' );
|
3624 |
+
$unit_price_measure = $this->getProductMeta( $product, '_unit_product' );
|
3625 |
+
|
3626 |
+
return $unit_price_measure." ".$unit;
|
3627 |
+
}
|
3628 |
+
return '';
|
3629 |
+
}
|
3630 |
+
|
3631 |
+
/**
|
3632 |
+
* Get Installment Months
|
3633 |
+
*
|
3634 |
+
* @param WC_Product $product
|
3635 |
+
*
|
3636 |
+
* @return mixed
|
3637 |
+
* @since 3.6.3
|
3638 |
+
*/
|
3639 |
+
protected function unit_price_base_measure( $product ) {
|
3640 |
+
if ( class_exists( 'WooCommerce_Germanized' ) ) {
|
3641 |
+
$unit = $this->getProductMeta( $product, '_unit' );
|
3642 |
+
$unit_price_base_measure = $this->getProductMeta( $product, '_unit_base' );
|
3643 |
+
|
3644 |
+
return $unit_price_base_measure." ".$unit;
|
3645 |
+
}
|
3646 |
+
return '';
|
3647 |
+
}
|
3648 |
+
|
3649 |
}
|
includes/feeds/class-woo-feed-review.php
CHANGED
@@ -101,7 +101,9 @@ class Woo_Feed_Review {
|
|
101 |
|
102 |
foreach ( $product_names as $product_name ) {
|
103 |
$product_by_title = get_page_by_title($product_name, OBJECT, 'product');
|
104 |
-
|
|
|
|
|
105 |
}
|
106 |
|
107 |
if ( ! empty($product_ids) ) {
|
101 |
|
102 |
foreach ( $product_names as $product_name ) {
|
103 |
$product_by_title = get_page_by_title($product_name, OBJECT, 'product');
|
104 |
+
if( is_object( $product_by_title) ){
|
105 |
+
$product_ids[] = $product_by_title->ID;
|
106 |
+
}
|
107 |
}
|
108 |
|
109 |
if ( ! empty($product_ids) ) {
|
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.
|
14 |
* Author: WebAppick
|
15 |
* Author URI: https://webappick.com/
|
16 |
* 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', '4.
|
43 |
}
|
44 |
|
45 |
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.0
|
14 |
* Author: WebAppick
|
15 |
* Author URI: https://webappick.com/
|
16 |
* License: GPL v2
|
39 |
* @var string
|
40 |
* @since 3.1.6
|
41 |
*/
|
42 |
+
define( 'WOO_FEED_FREE_VERSION', '4.4.0' );
|
43 |
}
|
44 |
|
45 |
if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
|