Version Description
- Added a created timestamp to Skroutz XML feeds
- Fixed an issue that resulted in a fatal error, added is array check
- Fixed an issue that resulted in PHP warnings when browsers do not set a HTTP USER AGENT
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 12.0.0 |
Comparing to | |
See all releases |
Code changes from version 11.9.9 to 12.0.0
- classes/class-get-products.php +11 -7
- js/woosea_key.js +1 -1
- readme.txt +11 -1
- woocommerce-sea.php +5 -2
classes/class-get-products.php
CHANGED
@@ -1559,7 +1559,9 @@ class WooSEA_Get_Products {
|
|
1559 |
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><products></products>');
|
1560 |
$xml->addAttribute('version', '1.0');
|
1561 |
$xml->addAttribute('standalone', 'yes');
|
1562 |
-
|
|
|
|
|
1563 |
//$xml->addChild('title', htmlspecialchars($feed_config['projectname']));
|
1564 |
//$xml->addChild('link', home_url());
|
1565 |
//$xml->addChild('description', 'WooCommerce Product Feed PRO - This product feed is created with the free Advanced Product Feed PRO for WooCommerce plugin from AdTribes.io. For all your support questions check out our FAQ on https://www.adtribes.io or e-mail to: support@adtribes.io ');
|
@@ -4126,12 +4128,14 @@ class WooSEA_Get_Products {
|
|
4126 |
*/
|
4127 |
$custom_attributes = $this->get_custom_attributes( $product_data['id'] );
|
4128 |
|
4129 |
-
|
4130 |
-
|
4131 |
-
|
4132 |
-
|
4133 |
-
|
4134 |
-
|
|
|
|
|
4135 |
|
4136 |
if ( class_exists( 'All_in_One_SEO_Pack' ) ) {
|
4137 |
$custom_attributes['_aioseop_title'] = "All in one seo pack title";
|
1559 |
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><products></products>');
|
1560 |
$xml->addAttribute('version', '1.0');
|
1561 |
$xml->addAttribute('standalone', 'yes');
|
1562 |
+
if($feed_config['name'] == "Skroutz"){
|
1563 |
+
$xml->addChild('created_at', date('Y-m-d H:i'));
|
1564 |
+
}
|
1565 |
//$xml->addChild('title', htmlspecialchars($feed_config['projectname']));
|
1566 |
//$xml->addChild('link', home_url());
|
1567 |
//$xml->addChild('description', 'WooCommerce Product Feed PRO - This product feed is created with the free Advanced Product Feed PRO for WooCommerce plugin from AdTribes.io. For all your support questions check out our FAQ on https://www.adtribes.io or e-mail to: support@adtribes.io ');
|
4128 |
*/
|
4129 |
$custom_attributes = $this->get_custom_attributes( $product_data['id'] );
|
4130 |
|
4131 |
+
if(is_array($custom_attributes)){
|
4132 |
+
if(!in_array("woosea optimized title", $custom_attributes)){
|
4133 |
+
$woosea_opt = array (
|
4134 |
+
"_woosea_optimized_title" => "woosea optimized title",
|
4135 |
+
);
|
4136 |
+
$custom_attributes = array_merge($custom_attributes, $woosea_opt);
|
4137 |
+
}
|
4138 |
+
}
|
4139 |
|
4140 |
if ( class_exists( 'All_in_One_SEO_Pack' ) ) {
|
4141 |
$custom_attributes['_aioseop_title'] = "All in one seo pack title";
|
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=
|
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=12.0.0',
|
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, Facebook feed, Facebook catalog feed, WooCommerce Product Feed, Product Feed, Bing Shopping Feed, Bing Product Feed, Google Merchant Feed, Skroutz, Google Product Feed, Pinterest, Idealo, Pixels, Conversion API
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 6.1
|
8 |
-
Stable tag:
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -340,6 +340,11 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
340 |
|
341 |
=== Changelog ===
|
342 |
|
|
|
|
|
|
|
|
|
|
|
343 |
= 11.9.9 (2022-11-09) =
|
344 |
* Checked for compatibility with WooCommerce 7.1
|
345 |
* jQuery CSS no longer enqueued on the WP-admin dashboard
|
@@ -3829,6 +3834,11 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
3829 |
|
3830 |
== Upgrade Notice ==
|
3831 |
|
|
|
|
|
|
|
|
|
|
|
3832 |
= 11.9.9 =
|
3833 |
Checked for compatibility with WooCommerce 7.1
|
3834 |
jQuery CSS no longer enqueued on the WP-admin dashboard
|
5 |
Tags: Google Shopping Feed, Facebook feed, Facebook catalog feed, WooCommerce Product Feed, Product Feed, Bing Shopping Feed, Bing Product Feed, Google Merchant Feed, Skroutz, Google Product Feed, Pinterest, Idealo, Pixels, Conversion API
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 6.1
|
8 |
+
Stable tag: 12.0.0
|
9 |
|
10 |
== Description ==
|
11 |
|
340 |
|
341 |
=== Changelog ===
|
342 |
|
343 |
+
= 12.0.0 (2022-11-15) =
|
344 |
+
* Added a created timestamp to Skroutz XML feeds
|
345 |
+
* Fixed an issue that resulted in a fatal error, added is array check
|
346 |
+
* Fixed an issue that resulted in PHP warnings when browsers do not set a HTTP USER AGENT
|
347 |
+
|
348 |
= 11.9.9 (2022-11-09) =
|
349 |
* Checked for compatibility with WooCommerce 7.1
|
350 |
* jQuery CSS no longer enqueued on the WP-admin dashboard
|
3834 |
|
3835 |
== Upgrade Notice ==
|
3836 |
|
3837 |
+
= 12.0.0 =
|
3838 |
+
* Added a created timestamp to Skroutz XML feeds
|
3839 |
+
* Fixed an issue that resulted in a fatal error, added is array check
|
3840 |
+
* Fixed an issue that resulted in PHP warnings when browsers do not set a HTTP USER AGENT
|
3841 |
+
|
3842 |
= 11.9.9 =
|
3843 |
Checked for compatibility with WooCommerce 7.1
|
3844 |
jQuery CSS no longer enqueued on the WP-admin dashboard
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version:
|
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, Catalog managers, 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', '
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
@@ -260,6 +260,9 @@ function woosea_add_facebook_pixel( $product = null ){
|
|
260 |
$fb_capi_data["event_time"] = time();
|
261 |
$fb_capi_data["event_id"] = $event_id;
|
262 |
$fb_capi_data["user_data"]["client_ip_address"] = WC_Geolocation::get_ip_address();
|
|
|
|
|
|
|
263 |
$fb_capi_data["user_data"]["client_user_agent"] = sanitize_text_field($_SERVER['HTTP_USER_AGENT']);
|
264 |
$fb_capi_data["action_source"] = "website";
|
265 |
$fb_capi_data["event_source_url"] = sanitize_text_field(home_url($_SERVER['REQUEST_URI']));
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
+
* Version: 12.0.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, Catalog managers, 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', '12.0.0' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
260 |
$fb_capi_data["event_time"] = time();
|
261 |
$fb_capi_data["event_id"] = $event_id;
|
262 |
$fb_capi_data["user_data"]["client_ip_address"] = WC_Geolocation::get_ip_address();
|
263 |
+
if(!isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
264 |
+
$_SERVER['HTTP_USER_AGENT'] = "Unknown";
|
265 |
+
}
|
266 |
$fb_capi_data["user_data"]["client_user_agent"] = sanitize_text_field($_SERVER['HTTP_USER_AGENT']);
|
267 |
$fb_capi_data["action_source"] = "website";
|
268 |
$fb_capi_data["event_source_url"] = sanitize_text_field(home_url($_SERVER['REQUEST_URI']));
|