Version Description
Fixed a bug: The Facebook pixel ID on the cart page showed a PHP error. Issue has been solved now.
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 7.2.1 |
Comparing to | |
See all releases |
Code changes from version 7.2.0 to 7.2.1
- js/woosea_key.js +1 -1
- readme.txt +7 -1
- woocommerce-sea.php +27 -22
js/woosea_key.js
CHANGED
@@ -27,7 +27,7 @@ jQuery(document).ready(function($) {
|
|
27 |
var license_key = $('#license-key').val();
|
28 |
|
29 |
jQuery.ajax({
|
30 |
-
url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=7.2.
|
31 |
jsonp: 'callback',
|
32 |
dataType: 'jsonp',
|
33 |
type: 'GET',
|
27 |
var license_key = $('#license-key').val();
|
28 |
|
29 |
jQuery.ajax({
|
30 |
+
url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=7.2.1',
|
31 |
jsonp: 'callback',
|
32 |
dataType: 'jsonp',
|
33 |
type: 'GET',
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
|
|
5 |
Tags: Product Feed, Google Shopping, Google Shopping Feed, WooCommerce Product Feed, WooCommerce Product Feed PRO, Bing Shopping, Bing product feed, Bing remarking, Google Merchant Feed, Google DRM Feed, Google Dynamic Remarketing Feed, Facebook feed, Google feed, Bing feed, Facebook Product Feed, Facebook Dynamic remarketing, Data Feed, WooCommerce Feed, XML product feed, CSV product feed, TSV, TXT product feed, comparison shopping engines, comparison shopping websites, vergelijk.nl, vergelijk.be, vertaa.fi, beslist.nl, kieskeurig.nl, bol.com, raketten, pricerunner, pricegrabber, Buy, leGuide, Kelkoo, Twenga, Yandex, Etsy, Dealtime, Shopzilla, Billiger, Google Product Review feed
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 5.3
|
8 |
-
Stable tag: 7.2.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -302,6 +302,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
302 |
|
303 |
=== Changelog ===
|
304 |
|
|
|
|
|
|
|
305 |
= 7.2.0 (2020-01-15) =
|
306 |
* Improved front-end performance for structured data feature
|
307 |
|
@@ -2275,6 +2278,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
2275 |
|
2276 |
== Upgrade Notice ==
|
2277 |
|
|
|
|
|
|
|
2278 |
= 7.2.0 =
|
2279 |
Improved front-end performance for structured data feature
|
2280 |
|
5 |
Tags: Product Feed, Google Shopping, Google Shopping Feed, WooCommerce Product Feed, WooCommerce Product Feed PRO, Bing Shopping, Bing product feed, Bing remarking, Google Merchant Feed, Google DRM Feed, Google Dynamic Remarketing Feed, Facebook feed, Google feed, Bing feed, Facebook Product Feed, Facebook Dynamic remarketing, Data Feed, WooCommerce Feed, XML product feed, CSV product feed, TSV, TXT product feed, comparison shopping engines, comparison shopping websites, vergelijk.nl, vergelijk.be, vertaa.fi, beslist.nl, kieskeurig.nl, bol.com, raketten, pricerunner, pricegrabber, Buy, leGuide, Kelkoo, Twenga, Yandex, Etsy, Dealtime, Shopzilla, Billiger, Google Product Review feed
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 5.3
|
8 |
+
Stable tag: 7.2.1
|
9 |
|
10 |
== Description ==
|
11 |
|
302 |
|
303 |
=== Changelog ===
|
304 |
|
305 |
+
= 7.2.1 (2020-01-16) =
|
306 |
+
* Fixed a bug: The Facebook pixel ID on the cart page showed a PHP error. Issue has been solved now.
|
307 |
+
|
308 |
= 7.2.0 (2020-01-15) =
|
309 |
* Improved front-end performance for structured data feature
|
310 |
|
2278 |
|
2279 |
== Upgrade Notice ==
|
2280 |
|
2281 |
+
= 7.2.1 =
|
2282 |
+
Fixed a bug: The Facebook pixel ID on the cart page showed a PHP error. Issue has been solved now.
|
2283 |
+
|
2284 |
= 7.2.0 =
|
2285 |
Improved front-end performance for structured data feature
|
2286 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 7.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, 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', '7.2.
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
@@ -421,28 +421,33 @@ function woosea_add_facebook_pixel( $product = null ){
|
|
421 |
} elseif ($fb_pagetype == "cart"){
|
422 |
//$fb_prodid = get_the_id();
|
423 |
//$viewContent = "";
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
}
|
|
|
|
|
442 |
}
|
443 |
-
|
444 |
-
$contents = rtrim($contents, ",");
|
445 |
-
$viewContent = "fbq(\"trackCustom\",\"Purchase\",{currency:\"$currency\", value:\"$order_real\", content_type:\"product\", content:\"[$contents]\"});";
|
446 |
} elseif ($fb_pagetype == "category"){
|
447 |
$term = get_queried_object();
|
448 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
+
* Version: 7.2.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, 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', '7.2.1' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
421 |
} elseif ($fb_pagetype == "cart"){
|
422 |
//$fb_prodid = get_the_id();
|
423 |
//$viewContent = "";
|
424 |
+
if(!empty($_GET)){
|
425 |
+
$order_string = sanitize_text_field($_GET['key']);
|
426 |
+
if(!empty($order_string)){
|
427 |
+
$order_id = wc_get_order_id_by_order_key( $order_string );
|
428 |
+
$order = wc_get_order( $order_id );
|
429 |
+
$order_items = $order->get_items();
|
430 |
+
$currency = get_woocommerce_currency();
|
431 |
+
$order_real = 0;
|
432 |
+
$contents = "";
|
433 |
+
|
434 |
+
if ( !is_wp_error( $order_items )) {
|
435 |
+
foreach( $order_items as $item_id => $order_item) {
|
436 |
+
$prod_id = $order_item->get_product_id();
|
437 |
+
$prod_quantity = $order_item->get_quantity();
|
438 |
+
$order_total = $order_item->get_total();
|
439 |
+
$order_subtotal = $order_item->get_subtotal();
|
440 |
+
$order_subtotal_tax= $order_item->get_subtotal_tax();
|
441 |
+
$order_real = number_format(($order_subtotal+$order_subtotal_tax),2)+$order_real;
|
442 |
+
$contents .= "{'id': '$prod_id', 'quantity': $prod_quantity},";
|
443 |
+
}
|
444 |
+
}
|
445 |
+
$contents = rtrim($contents, ",");
|
446 |
+
$viewContent = "fbq(\"trackCustom\",\"Purchase\",{currency:\"$currency\", value:\"$order_real\", content_type:\"product\", content:\"[$contents]\"});";
|
447 |
}
|
448 |
+
} else {
|
449 |
+
$viewContent = "";
|
450 |
}
|
|
|
|
|
|
|
451 |
} elseif ($fb_pagetype == "category"){
|
452 |
$term = get_queried_object();
|
453 |
|