Version Description
Added template for Slovakian Mall.sk marketplace
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 11.0.8 |
Comparing to | |
See all releases |
Code changes from version 11.0.7 to 11.0.8
- classes/channels/class-mall.php +120 -0
- classes/class-activate.php +8 -1
- classes/class-get-products.php +12 -3
- js/woosea_key.js +1 -1
- readme.txt +7 -1
- woocommerce-sea.php +2 -2
classes/channels/class-mall.php
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Settings for Mall feeds
|
4 |
+
*/
|
5 |
+
class WooSEA_mall {
|
6 |
+
public $mall;
|
7 |
+
|
8 |
+
public static function get_channel_attributes() {
|
9 |
+
$sitename = get_option('blogname');
|
10 |
+
|
11 |
+
$mall = array(
|
12 |
+
"Feed fields" => array(
|
13 |
+
"ID" => array(
|
14 |
+
"name" => "ID",
|
15 |
+
"feed_name" => "ID",
|
16 |
+
"format" => "required",
|
17 |
+
"woo_suggest" => "id",
|
18 |
+
),
|
19 |
+
"STAGE" => array(
|
20 |
+
"name" => "STAGE",
|
21 |
+
"feed_name" => "STAGE",
|
22 |
+
"format" => "required",
|
23 |
+
),
|
24 |
+
"ITEMGROUP_ID" => array(
|
25 |
+
"name" => "ITEMGROUP_ID",
|
26 |
+
"feed_name" => "ITEMGROUP_ID",
|
27 |
+
"format" => "required",
|
28 |
+
"woo_suggest" => "item_group_id",
|
29 |
+
),
|
30 |
+
"ITEMGROUP_TITLE" => array(
|
31 |
+
"name" => "ITEMGROUP_TITLE",
|
32 |
+
"feed_name" => "ITEMGROUP_TITLE",
|
33 |
+
"format" => "required",
|
34 |
+
"woo_suggest" => "mother_title",
|
35 |
+
),
|
36 |
+
"CATEGORY_ID" => array(
|
37 |
+
"name" => "CATEGORY_ID",
|
38 |
+
"feed_name" => "CATEGORY_ID",
|
39 |
+
"format" => "required",
|
40 |
+
),
|
41 |
+
"BRAND_ID" => array(
|
42 |
+
"name" => "BRAND_ID",
|
43 |
+
"feed_name" => "BRAND_ID",
|
44 |
+
"format" => "required",
|
45 |
+
),
|
46 |
+
"TITLE" => array(
|
47 |
+
"name" => "TITLE",
|
48 |
+
"feed_name" => "TITLE",
|
49 |
+
"format" => "required",
|
50 |
+
"woo_suggest" => "title",
|
51 |
+
),
|
52 |
+
"SHORTDESC" => array(
|
53 |
+
"name" => "SHORTDESC",
|
54 |
+
"feed_name" => "SHORTDESC",
|
55 |
+
"format" => "required",
|
56 |
+
"woo_suggest" => "short_description",
|
57 |
+
),
|
58 |
+
"LONGDESC" => array(
|
59 |
+
"name" => "LONGDESC",
|
60 |
+
"feed_name" => "LONGDESC",
|
61 |
+
"format" => "optional",
|
62 |
+
"woo_suggest" => "description",
|
63 |
+
),
|
64 |
+
"PRIORITY" => array(
|
65 |
+
"name" => "PRIORITY",
|
66 |
+
"feed_name" => "PRIORITY",
|
67 |
+
"format" => "required",
|
68 |
+
),
|
69 |
+
"PACKAGE_SIZE" => array(
|
70 |
+
"name" => "PACKAGE_SIZE",
|
71 |
+
"feed_name" => "PACKAGE_SIZE",
|
72 |
+
"format" => "optional",
|
73 |
+
),
|
74 |
+
"BARCODE" => array(
|
75 |
+
"name" => "BARCODE",
|
76 |
+
"feed_name" => "BARCODE",
|
77 |
+
"format" => "required",
|
78 |
+
),
|
79 |
+
"PRICE" => array(
|
80 |
+
"name" => "PRICE",
|
81 |
+
"feed_name" => "PRICE",
|
82 |
+
"format" => "required",
|
83 |
+
"woo_suggest" => "price",
|
84 |
+
),
|
85 |
+
"VAT" => array(
|
86 |
+
"name" => "VAT",
|
87 |
+
"feed_name" => "VAT",
|
88 |
+
"format" => "optional",
|
89 |
+
),
|
90 |
+
"RRP" => array(
|
91 |
+
"name" => "RRP",
|
92 |
+
"feed_name" => "RRP",
|
93 |
+
"format" => "optional",
|
94 |
+
),
|
95 |
+
"PARAM" => array(
|
96 |
+
"name" => "PARAM",
|
97 |
+
"feed_name" => "PARAM",
|
98 |
+
"format" => "optional",
|
99 |
+
),
|
100 |
+
"MEDIA" => array(
|
101 |
+
"name" => "MEDIA",
|
102 |
+
"feed_name" => "MEDIA",
|
103 |
+
"format" => "optional",
|
104 |
+
),
|
105 |
+
"DELIVERY_DELAY" => array(
|
106 |
+
"name" => "DELIVERY_DELAY",
|
107 |
+
"feed_name" => "DELIVERY_DELAY",
|
108 |
+
"format" => "optional",
|
109 |
+
),
|
110 |
+
"FREE_DELIVERY" => array(
|
111 |
+
"name" => "FREE_DELIVERY",
|
112 |
+
"feed_name" => "FREE_DELIVERY",
|
113 |
+
"format" => "optional",
|
114 |
+
),
|
115 |
+
),
|
116 |
+
);
|
117 |
+
return $mall;
|
118 |
+
}
|
119 |
+
}
|
120 |
+
?>
|
classes/class-activate.php
CHANGED
@@ -1420,7 +1420,14 @@ class WooSEA_Activation {
|
|
1420 |
"fields" => "heureka",
|
1421 |
"taxonomy" => "none",
|
1422 |
"utm_source" => "Heureka.sk",
|
1423 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1424 |
),
|
1425 |
"Slovenia" => array (),
|
1426 |
"Solomon Islands" => array (),
|
1420 |
"fields" => "heureka",
|
1421 |
"taxonomy" => "none",
|
1422 |
"utm_source" => "Heureka.sk",
|
1423 |
+
"type" => "Marketplace" ),
|
1424 |
+
"Mall.sk" => array (
|
1425 |
+
"channel_hash" => md5("Mall.sk"),
|
1426 |
+
"name" => "Mall.sk",
|
1427 |
+
"fields" => "mall",
|
1428 |
+
"taxonomy" => "none",
|
1429 |
+
"utm_source" => "Mall.sk",
|
1430 |
+
"type" => "Marketplace" ),
|
1431 |
),
|
1432 |
"Slovenia" => array (),
|
1433 |
"Solomon Islands" => array (),
|
classes/class-get-products.php
CHANGED
@@ -1435,6 +1435,9 @@ class WooSEA_Get_Products {
|
|
1435 |
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><SHOP></SHOP>');
|
1436 |
$xml->addAttribute('xmlns', 'http://www.heureka.cz/ns/offer/1.0');
|
1437 |
$xml->asXML($file);
|
|
|
|
|
|
|
1438 |
} elseif ($feed_config['name'] == "Heureka.sk") {
|
1439 |
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><SHOP></SHOP>');
|
1440 |
$xml->addAttribute('xmlns', 'http://www.heureka.sk/ns/offer/1.0');
|
@@ -1723,6 +1726,8 @@ class WooSEA_Get_Products {
|
|
1723 |
$product = $xml->products->addChild('product');
|
1724 |
} elseif ($feed_config['name'] == "Salidzini.lv") {
|
1725 |
$product = $xml->addChild('item');
|
|
|
|
|
1726 |
} elseif ($feed_config['name'] == "Trovaprezzi.it") {
|
1727 |
$product = $xml->addChild('Offer');
|
1728 |
} elseif ($feed_config['name'] == "Pricecheck.co.za") {
|
@@ -1852,14 +1857,18 @@ class WooSEA_Get_Products {
|
|
1852 |
}
|
1853 |
if(!empty($k)){
|
1854 |
/**
|
1855 |
-
* Some Zbozi and Heureka attributes need some extra XML nodes
|
1856 |
*/
|
1857 |
$zbozi_nodes = "PARAM_";
|
1858 |
|
1859 |
-
if((($feed_config['name'] == "Zbozi.cz") OR ($feed_config['name'] == "Glami.gr") OR ($feed_config['name'] == "Heureka.cz") OR ($feed_config['name'] == "Heureka.sk")) AND (preg_match("/$zbozi_nodes/i",$k))){
|
1860 |
$pieces = explode ("_", $k);
|
1861 |
$productp = $product->addChild('PARAM');
|
1862 |
-
|
|
|
|
|
|
|
|
|
1863 |
$productp->addChild("VAL", $v);
|
1864 |
} elseif((($feed_config['name'] == "Zbozi.cz") OR ($feed_config['name'] == "Heureka.cz")) AND ($k == "DELIVERY")){
|
1865 |
$delivery = $product->addChild('DELIVERY');
|
1435 |
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><SHOP></SHOP>');
|
1436 |
$xml->addAttribute('xmlns', 'http://www.heureka.cz/ns/offer/1.0');
|
1437 |
$xml->asXML($file);
|
1438 |
+
} elseif ($feed_config['name'] == "Mall.sk") {
|
1439 |
+
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8" standalone="yes"?><ITEMS></ITEMS>');
|
1440 |
+
$xml->asXML($file);
|
1441 |
} elseif ($feed_config['name'] == "Heureka.sk") {
|
1442 |
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><SHOP></SHOP>');
|
1443 |
$xml->addAttribute('xmlns', 'http://www.heureka.sk/ns/offer/1.0');
|
1726 |
$product = $xml->products->addChild('product');
|
1727 |
} elseif ($feed_config['name'] == "Salidzini.lv") {
|
1728 |
$product = $xml->addChild('item');
|
1729 |
+
} elseif ($feed_config['name'] == "Mall.sk") {
|
1730 |
+
$product = $xml->addChild('ITEM');
|
1731 |
} elseif ($feed_config['name'] == "Trovaprezzi.it") {
|
1732 |
$product = $xml->addChild('Offer');
|
1733 |
} elseif ($feed_config['name'] == "Pricecheck.co.za") {
|
1857 |
}
|
1858 |
if(!empty($k)){
|
1859 |
/**
|
1860 |
+
* Some Zbozi, Mall and Heureka attributes need some extra XML nodes
|
1861 |
*/
|
1862 |
$zbozi_nodes = "PARAM_";
|
1863 |
|
1864 |
+
if((($feed_config['name'] == "Zbozi.cz") OR ($feed_config['name'] == "Mall.sk") OR ($feed_config['name'] == "Glami.gr") OR ($feed_config['name'] == "Heureka.cz") OR ($feed_config['name'] == "Heureka.sk")) AND (preg_match("/$zbozi_nodes/i",$k))){
|
1865 |
$pieces = explode ("_", $k);
|
1866 |
$productp = $product->addChild('PARAM');
|
1867 |
+
if($feed_config['name'] == "Mall.sk"){
|
1868 |
+
$productp->addChild("PARAM", $pieces[1]);
|
1869 |
+
} else {
|
1870 |
+
$productp->addChild("PARAM_NAME", $pieces[1]);
|
1871 |
+
}
|
1872 |
$productp->addChild("VAL", $v);
|
1873 |
} elseif((($feed_config['name'] == "Zbozi.cz") OR ($feed_config['name'] == "Heureka.cz")) AND ($k == "DELIVERY")){
|
1874 |
$delivery = $product->addChild('DELIVERY');
|
js/woosea_key.js
CHANGED
@@ -26,7 +26,7 @@ jQuery(document).ready(function($) {
|
|
26 |
var license_key = $('#license-key').val();
|
27 |
|
28 |
jQuery.ajax({
|
29 |
-
url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=11.0.
|
30 |
jsonp: 'callback',
|
31 |
dataType: 'jsonp',
|
32 |
type: 'GET',
|
26 |
var license_key = $('#license-key').val();
|
27 |
|
28 |
jQuery.ajax({
|
29 |
+
url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=11.0.8',
|
30 |
jsonp: 'callback',
|
31 |
dataType: 'jsonp',
|
32 |
type: 'GET',
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
|
|
5 |
Tags: Google Shopping Feed, WooCommerce Product Feed, Facebook Product Feed, Bing Shopping Feed, Bing Product Feed, Google Merchant Feed, Skroutz, Google Product Feed, Pinterest, Idealo, Facebook Pixel, Facebook Conversion API
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 5.8
|
8 |
-
Stable tag: 11.0.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -336,6 +336,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
336 |
|
337 |
=== Changelog ===
|
338 |
|
|
|
|
|
|
|
339 |
= 11.0.7 (2021-12-23) =
|
340 |
* Added missing capability checks on plugin settings that could influence product feeds. Only administrators are allowed to make these changes.
|
341 |
|
@@ -3536,6 +3539,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
3536 |
|
3537 |
== Upgrade Notice ==
|
3538 |
|
|
|
|
|
|
|
3539 |
= 11.0.7 =
|
3540 |
Added missing capability checks on plugin settings that could influence product feeds. Only administrators are allowed to make these changes
|
3541 |
|
5 |
Tags: Google Shopping Feed, WooCommerce Product Feed, Facebook Product Feed, Bing Shopping Feed, Bing Product Feed, Google Merchant Feed, Skroutz, Google Product Feed, Pinterest, Idealo, Facebook Pixel, Facebook Conversion API
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 5.8
|
8 |
+
Stable tag: 11.0.8
|
9 |
|
10 |
== Description ==
|
11 |
|
336 |
|
337 |
=== Changelog ===
|
338 |
|
339 |
+
= 11.0.8 (2021-12-30) =
|
340 |
+
* Added template for Slovakian Mall.sk marketplace
|
341 |
+
|
342 |
= 11.0.7 (2021-12-23) =
|
343 |
* Added missing capability checks on plugin settings that could influence product feeds. Only administrators are allowed to make these changes.
|
344 |
|
3539 |
|
3540 |
== Upgrade Notice ==
|
3541 |
|
3542 |
+
= 11.0.8 =
|
3543 |
+
Added template for Slovakian Mall.sk marketplace
|
3544 |
+
|
3545 |
= 11.0.7 =
|
3546 |
Added missing capability checks on plugin settings that could influence product feeds. Only administrators are allowed to make these changes
|
3547 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 11.0.
|
5 |
* Plugin URI: https://www.adtribes.io/support/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=woosea_product_feed_pro
|
6 |
* Description: Configure and maintain your WooCommerce product feeds for Google Shopping, Facebook, Remarketing, Bing, Yandex, Comparison shopping websites and over a 100 channels more.
|
7 |
* Author: AdTribes.io
|
@@ -48,7 +48,7 @@ if (!defined('ABSPATH')) {
|
|
48 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
-
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '11.0.
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
+
* Version: 11.0.8
|
5 |
* Plugin URI: https://www.adtribes.io/support/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=woosea_product_feed_pro
|
6 |
* Description: Configure and maintain your WooCommerce product feeds for Google Shopping, Facebook, Remarketing, Bing, Yandex, Comparison shopping websites and over a 100 channels more.
|
7 |
* Author: AdTribes.io
|
48 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
+
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '11.0.8' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|