Version Description
(2020-10-08) = * Added: Zbozi.cz template. * Tweak: Documention link updated.
Download this release
Release Info
Developer | wahid0003 |
Plugin | CTX Feed – WooCommerce Product Feed Manager Plugin |
Version | 3.9.8 |
Comparing to | |
See all releases |
Code changes from version 3.9.7 to 3.9.8
- README.txt +5 -1
- admin/partials/templates/zbozi.cz.txt +8 -0
- admin/partials/woo-feed-content-settings.php +2 -2
- includes/classes/class-woo-feed-admin-message.php +1 -1
- includes/classes/class-woo-feed-merchant.php +1 -0
- includes/classes/class-woo-feed-products-v3.php +4 -3
- includes/feeds/merchant_infos.php +4 -0
- includes/feeds/merchant_templates.php +10 -0
- includes/helper.php +5 -0
- woo-feed.php +2 -2
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.9.
|
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.9.7 (2020-10-08) =
|
312 |
* Fix: item wrapper input not showing in edit page.
|
313 |
|
5 |
Requires at least: 3.6
|
6 |
Tested Up To: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 3.9.8
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
308 |
|
309 |
== Changelog ==
|
310 |
|
311 |
+
= 3.9.8 (2020-10-08) =
|
312 |
+
* Added: Zbozi.cz template.
|
313 |
+
* Tweak: Documention link updated.
|
314 |
+
|
315 |
= 3.9.7 (2020-10-08) =
|
316 |
* Fix: item wrapper input not showing in edit page.
|
317 |
|
admin/partials/templates/zbozi.cz.txt
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<SHOP xmlns="http://www.zbozi.cz/ns/offer/1.0">
|
3 |
+
<datetime>{DateTimeNow}</datetime>
|
4 |
+
<title>{BlogName}</title>
|
5 |
+
<link>{BlogURL}</link>
|
6 |
+
<description>{BlogDescription}</description>
|
7 |
+
{separator}
|
8 |
+
</SHOP>
|
admin/partials/woo-feed-content-settings.php
CHANGED
@@ -63,13 +63,13 @@ global $feedRules, $wooFeedDropDown, $merchant;
|
|
63 |
<tr class="itemWrapper" style="display: none;">
|
64 |
<th><label for="itemsWrapper"><?php _e( 'Items Wrapper', 'woo-feed' ); ?> <span class="requiredIn">*</span></label></th>
|
65 |
<td>
|
66 |
-
<input name="itemsWrapper" id="itemsWrapper" type="text" value="<?php echo esc_attr( $feedRules['itemsWrapper'] ); ?>" class="generalInput" required="required">
|
67 |
</td>
|
68 |
</tr>
|
69 |
<tr class="itemWrapper" style="display: none;">
|
70 |
<th><label for="itemWrapper"><?php _e( 'Single Item Wrapper', 'woo-feed' ); ?> <span class="requiredIn">*</span></label></th>
|
71 |
<td>
|
72 |
-
<input name="itemWrapper" id="itemWrapper" type="text" value="<?php echo esc_attr(
|
73 |
</td>
|
74 |
</tr>
|
75 |
<?php
|
63 |
<tr class="itemWrapper" style="display: none;">
|
64 |
<th><label for="itemsWrapper"><?php _e( 'Items Wrapper', 'woo-feed' ); ?> <span class="requiredIn">*</span></label></th>
|
65 |
<td>
|
66 |
+
<input name="itemsWrapper" id="itemsWrapper" type="text" value="<?php echo esc_attr( wp_unslash($feedRules['itemsWrapper']) ); ?>" class="generalInput" required="required">
|
67 |
</td>
|
68 |
</tr>
|
69 |
<tr class="itemWrapper" style="display: none;">
|
70 |
<th><label for="itemWrapper"><?php _e( 'Single Item Wrapper', 'woo-feed' ); ?> <span class="requiredIn">*</span></label></th>
|
71 |
<td>
|
72 |
+
<input name="itemWrapper" id="itemWrapper" type="text" value="<?php echo esc_attr( wp_unslash($feedRules['itemWrapper'] )); ?>" class="generalInput" required="required">
|
73 |
</td>
|
74 |
</tr>
|
75 |
<?php
|
includes/classes/class-woo-feed-admin-message.php
CHANGED
@@ -103,7 +103,7 @@ final class Woo_Feed_Message {
|
|
103 |
<img src="<?php echo esc_url( WOO_FEED_PLUGIN_URL ); ?>admin/images/get-woo-feed-pro.svg" alt="<?php esc_attr_e( 'Get Woo Feed Pro', 'woo-feed' ); ?>">
|
104 |
</a>
|
105 |
<div class="woo-feed-top-buttons">
|
106 |
-
<a class="woo-feed-doc-link" href="https://webappick.
|
107 |
<a class="woo-feed-video-link" href="http://bit.ly/2u6giNz" target="_blank"><span class="dashicons dashicons-youtube"></span> <?php _e( 'Video Tutorials', 'woo-feed' ); ?></a>
|
108 |
<a class="woo-feed-support-link" href="https://webappick.com/support/" target="_blank"><span class="dashicons dashicons-sos"></span> <?php _e( 'Get Support', 'woo-feed' ); ?></a>
|
109 |
</div>
|
103 |
<img src="<?php echo esc_url( WOO_FEED_PLUGIN_URL ); ?>admin/images/get-woo-feed-pro.svg" alt="<?php esc_attr_e( 'Get Woo Feed Pro', 'woo-feed' ); ?>">
|
104 |
</a>
|
105 |
<div class="woo-feed-top-buttons">
|
106 |
+
<a class="woo-feed-doc-link" href="https://webappick.com/docs/woocommerce-product-feed/" target="_blank" ><span class="dashicons dashicons-book"></span> <?php _e( 'Documentation', 'woo-feed' ); ?></a>
|
107 |
<a class="woo-feed-video-link" href="http://bit.ly/2u6giNz" target="_blank"><span class="dashicons dashicons-youtube"></span> <?php _e( 'Video Tutorials', 'woo-feed' ); ?></a>
|
108 |
<a class="woo-feed-support-link" href="https://webappick.com/support/" target="_blank"><span class="dashicons dashicons-sos"></span> <?php _e( 'Get Support', 'woo-feed' ); ?></a>
|
109 |
</div>
|
includes/classes/class-woo-feed-merchant.php
CHANGED
@@ -427,6 +427,7 @@ class Woo_Feed_Merchant {
|
|
427 |
'wish' => esc_html__( 'Wish.com', 'woo-feed' ),
|
428 |
'yahoo_nfa' => esc_html__( 'Yahoo NFA', 'woo-feed' ),
|
429 |
'zap.co.il' => esc_html__( 'Zap.co.il', 'woo-feed' ),
|
|
|
430 |
'zalando' => esc_html__( 'Zalando', 'woo-feed' ),
|
431 |
'---3' => '',
|
432 |
);
|
427 |
'wish' => esc_html__( 'Wish.com', 'woo-feed' ),
|
428 |
'yahoo_nfa' => esc_html__( 'Yahoo NFA', 'woo-feed' ),
|
429 |
'zap.co.il' => esc_html__( 'Zap.co.il', 'woo-feed' ),
|
430 |
+
'zbozi.cz' => esc_html__( 'Zbozi.cz', 'woo-feed' ),
|
431 |
'zalando' => esc_html__( 'Zalando', 'woo-feed' ),
|
432 |
'---3' => '',
|
433 |
);
|
includes/classes/class-woo-feed-products-v3.php
CHANGED
@@ -1053,10 +1053,11 @@ class Woo_Feed_Products_v3
|
|
1053 |
}
|
1054 |
|
1055 |
protected function process_xml_wrapper() {
|
1056 |
-
|
|
|
1057 |
$this->xml_wrapper = [
|
1058 |
-
'header' => '<?xml version="1.0" encoding="UTF-8" ?>' . PHP_EOL . '<' . $this->config['itemsWrapper'] . '>',
|
1059 |
-
'footer' => PHP_EOL . '</' . $
|
1060 |
];
|
1061 |
$this->config['itemWrapper'] = str_replace(' ', '_', $this->config['itemWrapper']);
|
1062 |
$this->config['itemsWrapper'] = str_replace(' ', '_', $this->config['itemsWrapper']);
|
1053 |
}
|
1054 |
|
1055 |
protected function process_xml_wrapper() {
|
1056 |
+
$itemsWrapperClose = explode(' ', $this->config['itemsWrapper']);
|
1057 |
+
$itemsWrapperClose = $itemsWrapperClose[0];
|
1058 |
$this->xml_wrapper = [
|
1059 |
+
'header' => '<?xml version="1.0" encoding="UTF-8" ?>' . PHP_EOL . '<' . wp_unslash($this->config['itemsWrapper']) . '>',
|
1060 |
+
'footer' => PHP_EOL . '</' . $itemsWrapperClose. '>',
|
1061 |
];
|
1062 |
$this->config['itemWrapper'] = str_replace(' ', '_', $this->config['itemWrapper']);
|
1063 |
$this->config['itemsWrapper'] = str_replace(' ', '_', $this->config['itemsWrapper']);
|
includes/feeds/merchant_infos.php
CHANGED
@@ -390,5 +390,9 @@ return array(
|
|
390 |
'link' => 'https://feedonomics.com/supported-channels/moebel-de-feed-specifications/',
|
391 |
'feed_file_type' => array( 'XML', 'CSV', 'TXT' ),
|
392 |
),
|
|
|
|
|
|
|
|
|
393 |
);
|
394 |
// End of file merchant_infos.php
|
390 |
'link' => 'https://feedonomics.com/supported-channels/moebel-de-feed-specifications/',
|
391 |
'feed_file_type' => array( 'XML', 'CSV', 'TXT' ),
|
392 |
),
|
393 |
+
'zbozi.cz' => array(
|
394 |
+
'link' => 'https://napoveda.sklik.cz/wp-content/uploads/offer_feed_en.pdf',
|
395 |
+
'feed_file_type' => array( 'XML' ),
|
396 |
+
),
|
397 |
);
|
398 |
// End of file merchant_infos.php
|
includes/feeds/merchant_templates.php
CHANGED
@@ -7649,5 +7649,15 @@ return array(
|
|
7649 |
'output_type' => array('1','1','1','1','1','1','1','1',),
|
7650 |
'limit' => array('','','','','','','','',),
|
7651 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7652 |
);
|
7653 |
// End of file merchant_templates.php
|
7649 |
'output_type' => array('1','1','1','1','1','1','1','1',),
|
7650 |
'limit' => array('','','','','','','','',),
|
7651 |
),
|
7652 |
+
'zbozi.cz' => array(
|
7653 |
+
'mattributes' => array('ITEM_ID','PRODUCTNAME','DESCRIPTION','URL','IMGURL','CATEGORYTEXT','VISIBILITY','PRICE_VAT','DELIVERY_DATE',),
|
7654 |
+
'prefix' => array('','','','','','','','','',),
|
7655 |
+
'type' => array('attribute','attribute','attribute','attribute','attribute','attribute','attribute','attribute','pattern',),
|
7656 |
+
'attributes' => array('id','title','description','link','image','product_type','visibility','current_price_with_tax','',),
|
7657 |
+
'default' => array('','','','','','','Develop-free','','0',),
|
7658 |
+
'suffix' => array('','','','','','','','','',),
|
7659 |
+
'output_type' => array('1','1','1','1','1','1','1','6','1',),
|
7660 |
+
'limit' => array('','','','','','','','','',),
|
7661 |
+
),
|
7662 |
);
|
7663 |
// End of file merchant_templates.php
|
includes/helper.php
CHANGED
@@ -2378,6 +2378,11 @@ if ( ! function_exists( 'woo_feed_filter_parsed_rules' ) ) {
|
|
2378 |
$rules['itemsWrapper'] = 'channel';
|
2379 |
$rules['itemWrapper'] = 'item';
|
2380 |
}
|
|
|
|
|
|
|
|
|
|
|
2381 |
}
|
2382 |
|
2383 |
return $rules;
|
2378 |
$rules['itemsWrapper'] = 'channel';
|
2379 |
$rules['itemWrapper'] = 'item';
|
2380 |
}
|
2381 |
+
|
2382 |
+
if ( false !== strpos( $provider, 'zbozi.cz' ) ) {
|
2383 |
+
$rules['itemsWrapper'] = 'SHOP xmlns="http://www.zbozi.cz/ns/offer/1.0"';
|
2384 |
+
$rules['itemWrapper'] = 'SHOPITEM';
|
2385 |
+
}
|
2386 |
}
|
2387 |
|
2388 |
return $rules;
|
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.9.
|
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.9.
|
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.9.8
|
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.9.8' );
|
43 |
}
|
44 |
|
45 |
if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
|