Version Description
(2021-01-21) = * Added: Output type Rounded price added.
Download this release
Release Info
Developer | wahid0003 |
Plugin | CTX Feed – WooCommerce Product Feed Manager Plugin |
Version | 4.3.21 |
Comparing to | |
See all releases |
Code changes from version 4.3.20 to 4.3.21
- README.txt +4 -1
- includes/classes/class-woo-feed-dropdown.php +20 -19
- includes/classes/class-woo-feed-products-v3.php +19 -12
- woo-feed.php +2 -2
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 |
License: GPLv2 or later
|
13 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
14 |
|
@@ -308,6 +308,9 @@ Using pro version:
|
|
308 |
|
309 |
== Changelog ==
|
310 |
|
|
|
|
|
|
|
311 |
= 4.3.20 (2021-01-19) =
|
312 |
* Fixed: Idealo article number default attribute to product id.
|
313 |
|
8 |
Requires at least: 3.6
|
9 |
Tested Up To: 5.6
|
10 |
Requires PHP: 5.6
|
11 |
+
Stable tag: 4.3.21
|
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.21 (2021-01-21) =
|
312 |
+
* Added: Output type Rounded price added.
|
313 |
+
|
314 |
= 4.3.20 (2021-01-19) =
|
315 |
* Fixed: Idealo article number default attribute to product id.
|
316 |
|
includes/classes/class-woo-feed-dropdown.php
CHANGED
@@ -16,25 +16,26 @@ class Woo_Feed_Dropdown {
|
|
16 |
|
17 |
public $cats = array();
|
18 |
public $output_types = array(
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
'11' => '
|
30 |
-
'12' => '
|
31 |
-
'13' => '
|
32 |
-
'14' => '
|
33 |
-
'15' => '
|
34 |
-
'16' => '
|
35 |
-
'17' => '
|
36 |
-
'18' => '
|
37 |
-
'19' => '
|
|
|
38 |
);
|
39 |
|
40 |
public function __construct() {
|
16 |
|
17 |
public $cats = array();
|
18 |
public $output_types = array(
|
19 |
+
'1' => 'Default',
|
20 |
+
'2' => 'Strip Tags',
|
21 |
+
'3' => 'UTF-8 Encode',
|
22 |
+
'4' => 'htmlentities',
|
23 |
+
'5' => 'Integer',
|
24 |
+
'6' => 'Price',
|
25 |
+
'7' => 'Rounded Price',
|
26 |
+
'8' => 'Remove Space',
|
27 |
+
'9' => 'CDATA',
|
28 |
+
'10' => 'Remove Special Character',
|
29 |
+
'11' => 'Remove ShortCodes',
|
30 |
+
'12' => 'ucwords',
|
31 |
+
'13' => 'ucfirst',
|
32 |
+
'14' => 'strtoupper',
|
33 |
+
'15' => 'strtolower',
|
34 |
+
'16' => 'urlToSecure',
|
35 |
+
'17' => 'urlToUnsecure',
|
36 |
+
'18' => 'only_parent',
|
37 |
+
'19' => 'parent',
|
38 |
+
'20' => 'parent_if_empty',
|
39 |
);
|
40 |
|
41 |
public function __construct() {
|
includes/classes/class-woo-feed-products-v3.php
CHANGED
@@ -3104,48 +3104,55 @@ class Woo_Feed_Products_v3
|
|
3104 |
}
|
3105 |
}
|
3106 |
|
3107 |
-
if ( in_array(7, $outputTypes) ) { //
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3108 |
$output = trim($output);
|
3109 |
$output = preg_replace('!\s+!', ' ', $output);
|
3110 |
}
|
3111 |
|
3112 |
-
if ( in_array(
|
3113 |
$output = woo_feed_stripInvalidXml($output);
|
3114 |
}
|
3115 |
|
3116 |
-
if ( in_array(
|
3117 |
$output = $this->remove_short_codes($output);
|
3118 |
}
|
3119 |
|
3120 |
-
if ( in_array(
|
3121 |
$output = ucwords(strtolower($output));
|
3122 |
}
|
3123 |
|
3124 |
-
if ( in_array(
|
3125 |
$output = ucfirst(strtolower($output));
|
3126 |
}
|
3127 |
|
3128 |
-
if ( in_array(
|
3129 |
$output = strtoupper(strtolower($output));
|
3130 |
}
|
3131 |
|
3132 |
-
if ( in_array(
|
3133 |
$output = strtolower($output);
|
3134 |
}
|
3135 |
|
3136 |
-
if ( in_array(
|
3137 |
if ( 'http' == substr($output, 0, 4) ) {
|
3138 |
$output = str_replace('http://', 'https://', $output);
|
3139 |
}
|
3140 |
}
|
3141 |
|
3142 |
-
if ( in_array(
|
3143 |
if ( 'http' == substr($output, 0, 4) ) {
|
3144 |
$output = str_replace('https://', 'http://', $output);
|
3145 |
}
|
3146 |
}
|
3147 |
|
3148 |
-
if ( in_array(
|
3149 |
if ( $product->is_type('variation') ) {
|
3150 |
$id = $product->get_parent_id();
|
3151 |
$parentProduct = wc_get_product($id);
|
@@ -3153,7 +3160,7 @@ class Woo_Feed_Products_v3
|
|
3153 |
}
|
3154 |
}
|
3155 |
|
3156 |
-
if ( in_array(
|
3157 |
if ( $product->is_type('variation') ) {
|
3158 |
$id = $product->get_parent_id();
|
3159 |
$parentProduct = wc_get_product($id);
|
@@ -3164,7 +3171,7 @@ class Woo_Feed_Products_v3
|
|
3164 |
}
|
3165 |
}
|
3166 |
|
3167 |
-
if ( in_array(
|
3168 |
if ( $product->is_type('variation') ) {
|
3169 |
$output = $this->getAttributeValueByType($product, $productAttribute, $merchant_attribute);
|
3170 |
if ( empty($output) ) {
|
3104 |
}
|
3105 |
}
|
3106 |
|
3107 |
+
if ( in_array( 7, $outputTypes ) ) { // Rounded Price
|
3108 |
+
if ( ! empty( $output ) && $output > 0 ) {
|
3109 |
+
$output = round($output);
|
3110 |
+
$output = number_format( $output, 2, '.', '' );
|
3111 |
+
}
|
3112 |
+
}
|
3113 |
+
|
3114 |
+
if ( in_array(8, $outputTypes) ) { // Delete Space
|
3115 |
$output = trim($output);
|
3116 |
$output = preg_replace('!\s+!', ' ', $output);
|
3117 |
}
|
3118 |
|
3119 |
+
if ( in_array(10, $outputTypes) ) { // Remove Invalid Character
|
3120 |
$output = woo_feed_stripInvalidXml($output);
|
3121 |
}
|
3122 |
|
3123 |
+
if ( in_array(11, $outputTypes) ) { // Remove ShortCodes
|
3124 |
$output = $this->remove_short_codes($output);
|
3125 |
}
|
3126 |
|
3127 |
+
if ( in_array(12, $outputTypes) ) {
|
3128 |
$output = ucwords(strtolower($output));
|
3129 |
}
|
3130 |
|
3131 |
+
if ( in_array(13, $outputTypes) ) {
|
3132 |
$output = ucfirst(strtolower($output));
|
3133 |
}
|
3134 |
|
3135 |
+
if ( in_array(14, $outputTypes) ) {
|
3136 |
$output = strtoupper(strtolower($output));
|
3137 |
}
|
3138 |
|
3139 |
+
if ( in_array(15, $outputTypes) ) {
|
3140 |
$output = strtolower($output);
|
3141 |
}
|
3142 |
|
3143 |
+
if ( in_array(16, $outputTypes) ) {
|
3144 |
if ( 'http' == substr($output, 0, 4) ) {
|
3145 |
$output = str_replace('http://', 'https://', $output);
|
3146 |
}
|
3147 |
}
|
3148 |
|
3149 |
+
if ( in_array(17, $outputTypes) ) {
|
3150 |
if ( 'http' == substr($output, 0, 4) ) {
|
3151 |
$output = str_replace('https://', 'http://', $output);
|
3152 |
}
|
3153 |
}
|
3154 |
|
3155 |
+
if ( in_array(18, $outputTypes) ) { // only parent
|
3156 |
if ( $product->is_type('variation') ) {
|
3157 |
$id = $product->get_parent_id();
|
3158 |
$parentProduct = wc_get_product($id);
|
3160 |
}
|
3161 |
}
|
3162 |
|
3163 |
+
if ( in_array(19, $outputTypes) ) { // child if parent empty
|
3164 |
if ( $product->is_type('variation') ) {
|
3165 |
$id = $product->get_parent_id();
|
3166 |
$parentProduct = wc_get_product($id);
|
3171 |
}
|
3172 |
}
|
3173 |
|
3174 |
+
if ( in_array(20, $outputTypes) ) { // parent if child empty
|
3175 |
if ( $product->is_type('variation') ) {
|
3176 |
$output = $this->getAttributeValueByType($product, $productAttribute, $merchant_attribute);
|
3177 |
if ( empty($output) ) {
|
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.
|
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.
|
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.21
|
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.21' );
|
42 |
}
|
43 |
|
44 |
if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
|