Version Description
(2021-09-17) = * Fixed: CTX Custom Field backward compatability issue fixed.
Download this release
Release Info
Developer | wahid0003 |
Plugin | CTX Feed – WooCommerce Product Feed Manager Plugin |
Version | 4.4.25 |
Comparing to | |
See all releases |
Code changes from version 4.4.24 to 4.4.25
- README.txt +4 -1
- includes/classes/class-woo-feed-products-v3.php +20 -5
- includes/helper.php +12 -7
- languages/woo-feed.pot +34 -34
- woo-feed.php +2 -2
README.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: Product Feed, WooCommerce, Google Shopping, Google Merchant, Facebook Cata
|
|
5 |
Requires at least: 4.4
|
6 |
Tested Up To: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 4.4.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -516,6 +516,9 @@ Using pro version:
|
|
516 |
|
517 |
== Changelog ==
|
518 |
|
|
|
|
|
|
|
519 |
= 4.4.24 (2021-09-15) =
|
520 |
* Fixed: UTF-8 character encoding issue fixed.
|
521 |
|
5 |
Requires at least: 4.4
|
6 |
Tested Up To: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 4.4.25
|
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.25 (2021-09-17) =
|
520 |
+
* Fixed: CTX Custom Field backward compatability issue fixed.
|
521 |
+
|
522 |
= 4.4.24 (2021-09-15) =
|
523 |
* Fixed: UTF-8 character encoding issue fixed.
|
524 |
|
includes/classes/class-woo-feed-products-v3.php
CHANGED
@@ -3570,13 +3570,28 @@ class Woo_Feed_Products_v3
|
|
3570 |
if ($product->is_type('variation')) {
|
3571 |
$meta = $field . '_var';
|
3572 |
}
|
|
|
3573 |
$meta = apply_filters('woo_feed_custom_field_meta', $meta, $product, $field);
|
3574 |
|
3575 |
-
|
3576 |
-
|
3577 |
-
|
3578 |
-
|
3579 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3580 |
|
3581 |
}
|
3582 |
|
3570 |
if ($product->is_type('variation')) {
|
3571 |
$meta = $field . '_var';
|
3572 |
}
|
3573 |
+
|
3574 |
$meta = apply_filters('woo_feed_custom_field_meta', $meta, $product, $field);
|
3575 |
|
3576 |
+
$new_meta_key = '';
|
3577 |
+
$old_meta_key = '';
|
3578 |
+
|
3579 |
+
if( strpos( $meta, '_identifier' ) !== false ){
|
3580 |
+
$old_meta_key = $meta;
|
3581 |
+
$new_meta_key = str_replace( '_identifier', '', $meta );
|
3582 |
+
} else {
|
3583 |
+
$new_meta_key = $meta;
|
3584 |
+
$old_meta_key = str_replace( 'woo_feed_', 'woo_feed_identifier_', $meta );
|
3585 |
+
}
|
3586 |
+
|
3587 |
+
$new_meta_value = $this->getProductMeta( $product, $new_meta_key );
|
3588 |
+
$old_meta_value = $this->getProductMeta( $product, $old_meta_key );
|
3589 |
+
|
3590 |
+
if( empty( $new_meta_value ) ){
|
3591 |
+
return $old_meta_value;
|
3592 |
+
} else {
|
3593 |
+
return $new_meta_value;
|
3594 |
+
}
|
3595 |
|
3596 |
}
|
3597 |
|
includes/helper.php
CHANGED
@@ -2963,10 +2963,15 @@ if (!function_exists('woo_feed_add_custom_identifier')) {
|
|
2963 |
foreach ($custom_identifier as $key => $value) {
|
2964 |
|
2965 |
//identifier meta value for old and new version users
|
2966 |
-
|
2967 |
-
|
2968 |
-
|
2969 |
-
|
|
|
|
|
|
|
|
|
|
|
2970 |
}
|
2971 |
|
2972 |
$custom_field_id = esc_attr(wp_unslash("woo_feed_{$key}"));
|
@@ -2975,7 +2980,7 @@ if (!function_exists('woo_feed_add_custom_identifier')) {
|
|
2975 |
woocommerce_wp_text_input(
|
2976 |
array(
|
2977 |
'id' => $custom_field_id,
|
2978 |
-
'value' => esc_attr(wp_unslash(
|
2979 |
'placeholder' => $custom_field_label,
|
2980 |
'label' => $custom_field_label,
|
2981 |
'desc_tip' => true,
|
@@ -5663,8 +5668,8 @@ if( ! function_exists( 'woo_feed_filter_product_title' ) ) {
|
|
5663 |
*/
|
5664 |
function woo_feed_filter_product_title($title, $product, $config) {
|
5665 |
|
5666 |
-
if(
|
5667 |
-
return
|
5668 |
}
|
5669 |
|
5670 |
if( isset($config['provider']) && in_array($config['provider'], ['google', 'facebook', 'pinterest', 'bing']) ) {
|
2963 |
foreach ($custom_identifier as $key => $value) {
|
2964 |
|
2965 |
//identifier meta value for old and new version users
|
2966 |
+
$custom_field_key_previous = sprintf('woo_feed_identifier_%s', strtolower($key));
|
2967 |
+
$custom_field_value_previous = get_post_meta( get_the_ID(), $custom_field_key_previous, true );
|
2968 |
+
|
2969 |
+
$custom_field_key = sprintf('woo_feed_%s', strtolower($key));
|
2970 |
+
$custom_field_value = get_post_meta( get_the_ID(), $custom_field_key, true );
|
2971 |
+
|
2972 |
+
if( empty( $custom_field_value ) && !empty( $custom_field_value_previous ) ){
|
2973 |
+
$custom_field_key = $custom_field_key_previous;
|
2974 |
+
$custom_field_value = $custom_field_value_previous;
|
2975 |
}
|
2976 |
|
2977 |
$custom_field_id = esc_attr(wp_unslash("woo_feed_{$key}"));
|
2980 |
woocommerce_wp_text_input(
|
2981 |
array(
|
2982 |
'id' => $custom_field_id,
|
2983 |
+
'value' => esc_attr( wp_unslash( $custom_field_value ) ),
|
2984 |
'placeholder' => $custom_field_label,
|
2985 |
'label' => $custom_field_label,
|
2986 |
'desc_tip' => true,
|
5668 |
*/
|
5669 |
function woo_feed_filter_product_title($title, $product, $config) {
|
5670 |
|
5671 |
+
if( ! is_string( $title ) ) {
|
5672 |
+
return '';
|
5673 |
}
|
5674 |
|
5675 |
if( isset($config['provider']) && in_array($config['provider'], ['google', 'facebook', 'pinterest', 'bing']) ) {
|
languages/woo-feed.pot
CHANGED
@@ -16,7 +16,7 @@ msgstr ""
|
|
16 |
msgid "Unauthorized Action."
|
17 |
msgstr ""
|
18 |
|
19 |
-
#: woo-feed.php:237, woo-feed.php:356, includes/helper.php:852, includes/helper.php:1903, includes/helper.php:2912, includes/helper.php:2941, includes/helper.php:
|
20 |
msgid "Invalid Request."
|
21 |
msgstr ""
|
22 |
|
@@ -76,7 +76,7 @@ msgstr ""
|
|
76 |
msgid "Learn More.."
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: admin/class-woo-feed-admin.php:152, includes/helper.php:
|
80 |
msgid "Select A Category"
|
81 |
msgstr ""
|
82 |
|
@@ -168,7 +168,7 @@ msgstr ""
|
|
168 |
msgid "mappings"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: admin/class-woo-feed-category-list.php:81, admin/class-woo-feed-category-list.php:122, admin/class-woo-feed-category-list.php:217, admin/class-woo-feed-manage-list.php:163, admin/class-woo-feed-manage-list.php:271, includes/helper.php:
|
172 |
msgid "Edit"
|
173 |
msgstr ""
|
174 |
|
@@ -605,127 +605,127 @@ msgstr ""
|
|
605 |
msgid "Custom field 4"
|
606 |
msgstr ""
|
607 |
|
608 |
-
#: includes/helper.php:2962, includes/helper.php:
|
609 |
msgid "CUSTOM FIELDS by CTX Feed"
|
610 |
msgstr ""
|
611 |
|
612 |
-
#: includes/helper.php:
|
613 |
msgid "Set product "
|
614 |
msgstr ""
|
615 |
|
616 |
-
#: includes/helper.php:
|
617 |
msgid " here."
|
618 |
msgstr ""
|
619 |
|
620 |
-
#: includes/helper.php:
|
621 |
msgid "Another category mapping exists with the same name."
|
622 |
msgstr ""
|
623 |
|
624 |
-
#: includes/helper.php:
|
625 |
msgid "Failed To Add Mapping"
|
626 |
msgstr ""
|
627 |
|
628 |
-
#: includes/helper.php:
|
629 |
msgid "Mapping Added Successfully"
|
630 |
msgstr ""
|
631 |
|
632 |
-
#: includes/helper.php:
|
633 |
msgid "Mapping Not Changed"
|
634 |
msgstr ""
|
635 |
|
636 |
-
#: includes/helper.php:
|
637 |
msgid "Failed To Updated Mapping"
|
638 |
msgstr ""
|
639 |
|
640 |
-
#: includes/helper.php:
|
641 |
msgid "Mapping Updated Successfully"
|
642 |
msgstr ""
|
643 |
|
644 |
-
#: includes/helper.php:
|
645 |
msgid "Copy this category to subcategories"
|
646 |
msgstr ""
|
647 |
|
648 |
-
#: includes/helper.php:
|
649 |
msgid "Clear Cache"
|
650 |
msgstr ""
|
651 |
|
652 |
-
#: includes/helper.php:
|
653 |
msgid "Something is wrong."
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: includes/helper.php:
|
657 |
msgid "User meta updated successfully."
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: includes/helper.php:
|
661 |
msgid "by CTX Feed"
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: includes/helper.php:
|
665 |
msgid "All"
|
666 |
msgstr ""
|
667 |
|
668 |
-
#: includes/helper.php:
|
669 |
msgid "Parent"
|
670 |
msgstr ""
|
671 |
|
672 |
-
#: includes/helper.php:
|
673 |
msgid "Parent:"
|
674 |
msgstr ""
|
675 |
|
676 |
-
#: includes/helper.php:
|
677 |
msgid "New"
|
678 |
msgstr ""
|
679 |
|
680 |
-
#: includes/helper.php:
|
681 |
msgid "Name"
|
682 |
msgstr ""
|
683 |
|
684 |
-
#: includes/helper.php:
|
685 |
msgid "Add New"
|
686 |
msgstr ""
|
687 |
|
688 |
-
#: includes/helper.php:
|
689 |
msgid "Update"
|
690 |
msgstr ""
|
691 |
|
692 |
-
#: includes/helper.php:
|
693 |
msgid "Separate"
|
694 |
msgstr ""
|
695 |
|
696 |
-
#: includes/helper.php:
|
697 |
msgid "with commas"
|
698 |
msgstr ""
|
699 |
|
700 |
-
#: includes/helper.php:
|
701 |
msgid "Search"
|
702 |
msgstr ""
|
703 |
|
704 |
-
#: includes/helper.php:
|
705 |
msgid "Add or remove"
|
706 |
msgstr ""
|
707 |
|
708 |
-
#: includes/helper.php:
|
709 |
msgid "Choose from the most used"
|
710 |
msgstr ""
|
711 |
|
712 |
-
#: includes/helper.php:
|
713 |
msgid "Option Successfully Added."
|
714 |
msgstr ""
|
715 |
|
716 |
-
#: includes/helper.php:
|
717 |
msgid "Option Already Added."
|
718 |
msgstr ""
|
719 |
|
720 |
-
#: includes/helper.php:
|
721 |
msgid "Feed data is empty. Can't duplicate feed."
|
722 |
msgstr ""
|
723 |
|
724 |
-
#: includes/helper.php:
|
725 |
msgid "Unable to save the duplicate feed data."
|
726 |
msgstr ""
|
727 |
|
728 |
-
#: includes/helper.php:
|
729 |
msgid "Feed Successfully Duplicated, but unable to generate the data file. Please click the \"Regenerate Button\""
|
730 |
msgstr ""
|
731 |
|
16 |
msgid "Unauthorized Action."
|
17 |
msgstr ""
|
18 |
|
19 |
+
#: woo-feed.php:237, woo-feed.php:356, includes/helper.php:852, includes/helper.php:1903, includes/helper.php:2912, includes/helper.php:2941, includes/helper.php:3329, includes/helper.php:3527, includes/helper.php:3555, includes/helper.php:5083, includes/helper.php:5581, includes/classes/class-woo-feed-webappick-api.php:428, includes/classes/class-woo-feed-webappick-api.php:452
|
20 |
msgid "Invalid Request."
|
21 |
msgstr ""
|
22 |
|
76 |
msgid "Learn More.."
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: admin/class-woo-feed-admin.php:152, includes/helper.php:3247, admin/partials/woo-feed-edit-config.php:66
|
80 |
msgid "Select A Category"
|
81 |
msgstr ""
|
82 |
|
168 |
msgid "mappings"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: admin/class-woo-feed-category-list.php:81, admin/class-woo-feed-category-list.php:122, admin/class-woo-feed-category-list.php:217, admin/class-woo-feed-manage-list.php:163, admin/class-woo-feed-manage-list.php:271, includes/helper.php:3608
|
172 |
msgid "Edit"
|
173 |
msgstr ""
|
174 |
|
605 |
msgid "Custom field 4"
|
606 |
msgstr ""
|
607 |
|
608 |
+
#: includes/helper.php:2962, includes/helper.php:3054
|
609 |
msgid "CUSTOM FIELDS by CTX Feed"
|
610 |
msgstr ""
|
611 |
|
612 |
+
#: includes/helper.php:2979
|
613 |
msgid "Set product "
|
614 |
msgstr ""
|
615 |
|
616 |
+
#: includes/helper.php:2979
|
617 |
msgid " here."
|
618 |
msgstr ""
|
619 |
|
620 |
+
#: includes/helper.php:3166
|
621 |
msgid "Another category mapping exists with the same name."
|
622 |
msgstr ""
|
623 |
|
624 |
+
#: includes/helper.php:3175
|
625 |
msgid "Failed To Add Mapping"
|
626 |
msgstr ""
|
627 |
|
628 |
+
#: includes/helper.php:3171
|
629 |
msgid "Mapping Added Successfully"
|
630 |
msgstr ""
|
631 |
|
632 |
+
#: includes/helper.php:3140
|
633 |
msgid "Mapping Not Changed"
|
634 |
msgstr ""
|
635 |
|
636 |
+
#: includes/helper.php:3150
|
637 |
msgid "Failed To Updated Mapping"
|
638 |
msgstr ""
|
639 |
|
640 |
+
#: includes/helper.php:3146
|
641 |
msgid "Mapping Updated Successfully"
|
642 |
msgstr ""
|
643 |
|
644 |
+
#: includes/helper.php:3267
|
645 |
msgid "Copy this category to subcategories"
|
646 |
msgstr ""
|
647 |
|
648 |
+
#: includes/helper.php:3298
|
649 |
msgid "Clear Cache"
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: includes/helper.php:3523, includes/helper.php:3552, includes/classes/class-woo-feed-webappick-api.php:447
|
653 |
msgid "Something is wrong."
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: includes/helper.php:3521
|
657 |
msgid "User meta updated successfully."
|
658 |
msgstr ""
|
659 |
|
660 |
+
#: includes/helper.php:3600, includes/helper.php:3602
|
661 |
msgid "by CTX Feed"
|
662 |
msgstr ""
|
663 |
|
664 |
+
#: includes/helper.php:3603
|
665 |
msgid "All"
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: includes/helper.php:3604
|
669 |
msgid "Parent"
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: includes/helper.php:3605
|
673 |
msgid "Parent:"
|
674 |
msgstr ""
|
675 |
|
676 |
+
#: includes/helper.php:3606
|
677 |
msgid "New"
|
678 |
msgstr ""
|
679 |
|
680 |
+
#: includes/helper.php:3606, libs/WebAppick/AppServices/Insights.php:977
|
681 |
msgid "Name"
|
682 |
msgstr ""
|
683 |
|
684 |
+
#: includes/helper.php:3607
|
685 |
msgid "Add New"
|
686 |
msgstr ""
|
687 |
|
688 |
+
#: includes/helper.php:3609
|
689 |
msgid "Update"
|
690 |
msgstr ""
|
691 |
|
692 |
+
#: includes/helper.php:3610
|
693 |
msgid "Separate"
|
694 |
msgstr ""
|
695 |
|
696 |
+
#: includes/helper.php:3610
|
697 |
msgid "with commas"
|
698 |
msgstr ""
|
699 |
|
700 |
+
#: includes/helper.php:3611
|
701 |
msgid "Search"
|
702 |
msgstr ""
|
703 |
|
704 |
+
#: includes/helper.php:3612
|
705 |
msgid "Add or remove"
|
706 |
msgstr ""
|
707 |
|
708 |
+
#: includes/helper.php:3613
|
709 |
msgid "Choose from the most used"
|
710 |
msgstr ""
|
711 |
|
712 |
+
#: includes/helper.php:4792
|
713 |
msgid "Option Successfully Added."
|
714 |
msgstr ""
|
715 |
|
716 |
+
#: includes/helper.php:4783
|
717 |
msgid "Option Already Added."
|
718 |
msgstr ""
|
719 |
|
720 |
+
#: includes/helper.php:5589
|
721 |
msgid "Feed data is empty. Can't duplicate feed."
|
722 |
msgstr ""
|
723 |
|
724 |
+
#: includes/helper.php:5605
|
725 |
msgid "Unable to save the duplicate feed data."
|
726 |
msgstr ""
|
727 |
|
728 |
+
#: includes/helper.php:5615
|
729 |
msgid "Feed Successfully Duplicated, but unable to generate the data file. Please click the \"Regenerate Button\""
|
730 |
msgstr ""
|
731 |
|
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.
|
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.
|
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.25
|
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.25' );
|
46 |
}
|
47 |
|
48 |
if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
|