Version Description
Added support for the Mall.sk availability feed Added user cap filter
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 11.1.2 |
Comparing to | |
See all releases |
Code changes from version 11.1.1 to 11.1.2
- classes/channels/class-mall_availability.php +35 -0
- classes/class-activate.php +8 -1
- classes/class-get-products.php +8 -2
- js/woosea_key.js +1 -1
- readme.txt +9 -1
- woocommerce-sea.php +6 -6
classes/channels/class-mall_availability.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Settings for Mall availability feeds
|
4 |
+
*/
|
5 |
+
class WooSEA_mall_availability {
|
6 |
+
public $mall_availability;
|
7 |
+
|
8 |
+
public static function get_channel_attributes() {
|
9 |
+
$sitename = get_option('blogname');
|
10 |
+
|
11 |
+
$mall_availability = array(
|
12 |
+
"Feed fields" => array(
|
13 |
+
"ID" => array(
|
14 |
+
"name" => "ID",
|
15 |
+
"feed_name" => "ID",
|
16 |
+
"format" => "required",
|
17 |
+
"woo_suggest" => "id",
|
18 |
+
),
|
19 |
+
"IN_STOCK" => array(
|
20 |
+
"name" => "IN_STOCK",
|
21 |
+
"feed_name" => "IN_STOCK",
|
22 |
+
"format" => "required",
|
23 |
+
"woo_suggest" => "quantity",
|
24 |
+
),
|
25 |
+
"ACTIVE" => array(
|
26 |
+
"name" => "ACTIVE",
|
27 |
+
"feed_name" => "ACTIVE",
|
28 |
+
"format" => "required",
|
29 |
+
),
|
30 |
+
),
|
31 |
+
);
|
32 |
+
return $mall_availability;
|
33 |
+
}
|
34 |
+
}
|
35 |
+
?>
|
classes/class-activate.php
CHANGED
@@ -1421,7 +1421,14 @@ class WooSEA_Activation {
|
|
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",
|
1421 |
"taxonomy" => "none",
|
1422 |
"utm_source" => "Heureka.sk",
|
1423 |
"type" => "Marketplace" ),
|
1424 |
+
"Mall.sk availability" => array (
|
1425 |
+
"channel_hash" => md5("Mall.sk availability"),
|
1426 |
+
"name" => "Mall.sk availability",
|
1427 |
+
"fields" => "mall_availability",
|
1428 |
+
"taxonomy" => "none",
|
1429 |
+
"utm_source" => "Mall.sk availability",
|
1430 |
+
"type" => "Marketplace" ),
|
1431 |
+
"Mall.sk main feed" => array (
|
1432 |
"channel_hash" => md5("Mall.sk"),
|
1433 |
"name" => "Mall.sk",
|
1434 |
"fields" => "mall",
|
classes/class-get-products.php
CHANGED
@@ -758,6 +758,7 @@ class WooSEA_Get_Products {
|
|
758 |
|
759 |
foreach ($shipping_methods as $k => $v){
|
760 |
$method = $v->method_title;
|
|
|
761 |
$shipping_rate_id = $v->instance_id;
|
762 |
|
763 |
if($v->enabled == "yes"){
|
@@ -804,7 +805,7 @@ class WooSEA_Get_Products {
|
|
804 |
}
|
805 |
|
806 |
// WooCommerce Table Rate - Bolder Elements
|
807 |
-
if($
|
808 |
if($this->woosea_is_plugin_active( 'woocommerce-table-rate-shipping/woocommerce-table-rate-shipping.php' )) {
|
809 |
// Set shipping cost
|
810 |
$shipping_cost = 0;
|
@@ -850,7 +851,7 @@ class WooSEA_Get_Products {
|
|
850 |
}
|
851 |
|
852 |
// Official WooCommerce Table Rate plugin
|
853 |
-
if($
|
854 |
if($this->woosea_is_plugin_active( 'woocommerce-table-rate-shipping/woocommerce-table-rate-shipping.php' )) {
|
855 |
// Set shipping cost
|
856 |
$shipping_cost = 0;
|
@@ -1438,6 +1439,9 @@ class WooSEA_Get_Products {
|
|
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');
|
@@ -1728,6 +1732,8 @@ class WooSEA_Get_Products {
|
|
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") {
|
758 |
|
759 |
foreach ($shipping_methods as $k => $v){
|
760 |
$method = $v->method_title;
|
761 |
+
$method_id = $v->id;
|
762 |
$shipping_rate_id = $v->instance_id;
|
763 |
|
764 |
if($v->enabled == "yes"){
|
805 |
}
|
806 |
|
807 |
// WooCommerce Table Rate - Bolder Elements
|
808 |
+
if($method_id == "table_rate"){
|
809 |
if($this->woosea_is_plugin_active( 'woocommerce-table-rate-shipping/woocommerce-table-rate-shipping.php' )) {
|
810 |
// Set shipping cost
|
811 |
$shipping_cost = 0;
|
851 |
}
|
852 |
|
853 |
// Official WooCommerce Table Rate plugin
|
854 |
+
if($method_id == "table_rate"){
|
855 |
if($this->woosea_is_plugin_active( 'woocommerce-table-rate-shipping/woocommerce-table-rate-shipping.php' )) {
|
856 |
// Set shipping cost
|
857 |
$shipping_cost = 0;
|
1439 |
} elseif ($feed_config['name'] == "Mall.sk") {
|
1440 |
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8" standalone="yes"?><ITEMS></ITEMS>');
|
1441 |
$xml->asXML($file);
|
1442 |
+
} elseif ($feed_config['name'] == "Mall.sk availability") {
|
1443 |
+
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8" standalone="yes"?><AVAILABILITIES></AVAILABILITIES>');
|
1444 |
+
$xml->asXML($file);
|
1445 |
} elseif ($feed_config['name'] == "Heureka.sk") {
|
1446 |
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><SHOP></SHOP>');
|
1447 |
$xml->addAttribute('xmlns', 'http://www.heureka.sk/ns/offer/1.0');
|
1732 |
$product = $xml->addChild('item');
|
1733 |
} elseif ($feed_config['name'] == "Mall.sk") {
|
1734 |
$product = $xml->addChild('ITEM');
|
1735 |
+
} elseif ($feed_config['name'] == "Mall.sk availability") {
|
1736 |
+
$product = $xml->addChild('AVAILABILITY');
|
1737 |
} elseif ($feed_config['name'] == "Trovaprezzi.it") {
|
1738 |
$product = $xml->addChild('Offer');
|
1739 |
} elseif ($feed_config['name'] == "Pricecheck.co.za") {
|
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.1.
|
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.1.2',
|
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.1.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -337,6 +337,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
337 |
|
338 |
=== Changelog ===
|
339 |
|
|
|
|
|
|
|
|
|
340 |
= 11.1.1 (2022-01-03) =
|
341 |
* Added quantity support for Skroutz feeds
|
342 |
|
@@ -3549,6 +3553,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
3549 |
|
3550 |
== Upgrade Notice ==
|
3551 |
|
|
|
|
|
|
|
|
|
3552 |
= 11.1.1 =
|
3553 |
Added quantity support for Skroutz feeds
|
3554 |
|
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.1.2
|
9 |
|
10 |
== Description ==
|
11 |
|
337 |
|
338 |
=== Changelog ===
|
339 |
|
340 |
+
= 11.1.2 (2022-01-07) =
|
341 |
+
* Added support for the Mall.sk availability feed
|
342 |
+
* Added user cap filter
|
343 |
+
|
344 |
= 11.1.1 (2022-01-03) =
|
345 |
* Added quantity support for Skroutz feeds
|
346 |
|
3553 |
|
3554 |
== Upgrade Notice ==
|
3555 |
|
3556 |
+
= 11.1.2 =
|
3557 |
+
Added support for the Mall.sk availability feed
|
3558 |
+
Added user cap filter
|
3559 |
+
|
3560 |
= 11.1.1 =
|
3561 |
Added quantity support for Skroutz feeds
|
3562 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 11.1.
|
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, Skroutz, 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.1.
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
@@ -901,10 +901,10 @@ add_action( 'woosea_cron_hook', 'woosea_create_all_feeds'); // create a cron hoo
|
|
901 |
* Add WooCommerce SEA plugin to Menu
|
902 |
*/
|
903 |
function woosea_menu_addition(){
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
}
|
909 |
|
910 |
/**
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
+
* Version: 11.1.2
|
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, Skroutz, 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.1.2' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
901 |
* Add WooCommerce SEA plugin to Menu
|
902 |
*/
|
903 |
function woosea_menu_addition(){
|
904 |
+
add_menu_page(__( 'Product Feed PRO for WooCommerce', 'woo-product-feed-pro' ), __( 'Product Feed Pro','woo-product-feed-pro' ), apply_filters( 'woosea_user_cap', 'manage_options' ), __FILE__, 'woosea_generate_pages', esc_url( WOOCOMMERCESEA_PLUGIN_URL . '/images/icon-16x16.png'),99);
|
905 |
+
add_submenu_page(__FILE__, __( 'Feed configuration', 'woo-product-feed-pro' ), __( 'Create feed', 'woo-product-feed-pro' ), apply_filters( 'woosea_user_cap', 'manage_options' ), __FILE__, 'woosea_generate_pages');
|
906 |
+
add_submenu_page(__FILE__, __( 'Manage feeds', 'woo-product-feed-pro' ), __( 'Manage feeds', 'woo-product-feed-pro' ), apply_filters( 'woosea_user_cap', 'manage_options' ), 'woosea_manage_feed', 'woosea_manage_feed');
|
907 |
+
add_submenu_page(__FILE__, __( 'Settings', 'woo-product-feed-pro' ), __( 'Settings', 'woo-product-feed-pro' ), apply_filters( 'woosea_user_cap', 'manage_options' ), 'woosea_manage_settings', 'woosea_manage_settings');
|
908 |
}
|
909 |
|
910 |
/**
|