Version Description
Minor tweaks and tunes to the Facebook pixelcode
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 7.8.4 |
Comparing to | |
See all releases |
Code changes from version 7.8.3 to 7.8.4
- js/woosea_key.js +1 -1
- readme.txt +7 -1
- woocommerce-sea.php +12 -12
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.8.
|
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.8.4',
|
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.8.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -312,6 +312,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
312 |
|
313 |
=== Changelog ===
|
314 |
|
|
|
|
|
|
|
315 |
= 7.8.3 (2020-03-31) =
|
316 |
* Added some Facebook pixel debug logging
|
317 |
|
@@ -2492,6 +2495,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
2492 |
|
2493 |
== Upgrade Notice ==
|
2494 |
|
|
|
|
|
|
|
2495 |
= 7.8.3 =
|
2496 |
Added some Facebook pixel debug logging
|
2497 |
|
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.8.4
|
9 |
|
10 |
== Description ==
|
11 |
|
312 |
|
313 |
=== Changelog ===
|
314 |
|
315 |
+
= 7.8.4 (2020-03-31) =
|
316 |
+
* Minor tweaks and tunes to the Facebook pixelcode
|
317 |
+
|
318 |
= 7.8.3 (2020-03-31) =
|
319 |
* Added some Facebook pixel debug logging
|
320 |
|
2495 |
|
2496 |
== Upgrade Notice ==
|
2497 |
|
2498 |
+
= 7.8.4 =
|
2499 |
+
Minor tweaks and tunes to the Facebook pixelcode
|
2500 |
+
|
2501 |
= 7.8.3 =
|
2502 |
Added some Facebook pixel debug logging
|
2503 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 7.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,7 +48,7 @@ if (!defined('ABSPATH')) {
|
|
48 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
-
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '7.8.
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
@@ -376,7 +376,6 @@ function woosea_add_facebook_pixel( $product = null ){
|
|
376 |
// When there are not we are on a variable product page but not on a specific variable one
|
377 |
// In that case we need to put in the AggregateOffer structured data
|
378 |
$variation_id = woosea_find_matching_product_variation( $product, $_GET );
|
379 |
-
// $variation_id = '\''.$variation_id.'\'';
|
380 |
|
381 |
$nr_get = count($_GET);
|
382 |
|
@@ -404,7 +403,7 @@ function woosea_add_facebook_pixel( $product = null ){
|
|
404 |
$fb_price = $fb_lowprice;
|
405 |
}
|
406 |
}
|
407 |
-
$viewContent = "fbq(
|
408 |
} else {
|
409 |
// This is a parent variable product
|
410 |
// Since these are not allowed in the feed, at the variations product ID's
|
@@ -416,6 +415,7 @@ function woosea_add_facebook_pixel( $product = null ){
|
|
416 |
$content .= $id.',';
|
417 |
}
|
418 |
|
|
|
419 |
$prices = $product->get_variation_prices();
|
420 |
$lowest = reset( $prices['price'] );
|
421 |
$highest = end( $prices['price'] );
|
@@ -427,11 +427,11 @@ function woosea_add_facebook_pixel( $product = null ){
|
|
427 |
$fb_highprice = wc_format_decimal( $highest, wc_get_price_decimals() );
|
428 |
$fb_price = $fb_lowprice;
|
429 |
}
|
430 |
-
$viewContent = "fbq(
|
431 |
}
|
432 |
} else {
|
433 |
$fb_price = wc_format_decimal( $product->get_price(), wc_get_price_decimals() );
|
434 |
-
$viewContent = "fbq(
|
435 |
}
|
436 |
}
|
437 |
}
|
@@ -456,11 +456,11 @@ function woosea_add_facebook_pixel( $product = null ){
|
|
456 |
$order_subtotal = $order_item->get_subtotal();
|
457 |
$order_subtotal_tax= $order_item->get_subtotal_tax();
|
458 |
$order_real = number_format(($order_subtotal+$order_subtotal_tax),2)+$order_real;
|
459 |
-
$contents .= "{
|
460 |
}
|
461 |
}
|
462 |
$contents = rtrim($contents, ",");
|
463 |
-
$viewContent = "fbq(
|
464 |
}
|
465 |
} else {
|
466 |
// This is on the cart page itself
|
@@ -488,10 +488,10 @@ function woosea_add_facebook_pixel( $product = null ){
|
|
488 |
|
489 |
// User is on the billing pages
|
490 |
if($checkoutpage == $current_url){
|
491 |
-
$viewContent = "fbq(
|
492 |
} else {
|
493 |
// User is on the basket page
|
494 |
-
$viewContent = "fbq(
|
495 |
}
|
496 |
}
|
497 |
}
|
@@ -522,7 +522,7 @@ function woosea_add_facebook_pixel( $product = null ){
|
|
522 |
$fb_prodid = rtrim($fb_prodid, ",");
|
523 |
$category_name = $term->name;
|
524 |
$category_path = woosea_get_term_parents( $term->term_id, 'product_cat', $link = false, $project_taxonomy = false, $nicename = false, $visited = array() );
|
525 |
-
$viewContent = "fbq(\"
|
526 |
} elseif ($fb_pagetype == "searchresults"){
|
527 |
$term = get_queried_object();
|
528 |
$search_string = sanitize_text_field($_GET['s']);
|
@@ -4240,7 +4240,7 @@ function woosea_license_valid(){
|
|
4240 |
|
4241 |
if(!empty($license_information['license_key'])){
|
4242 |
$curl = curl_init();
|
4243 |
-
$url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.8.
|
4244 |
|
4245 |
curl_setopt_array($curl, array(
|
4246 |
CURLOPT_RETURNTRANSFER => 1,
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
+
* Version: 7.8.4
|
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.8.4' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
376 |
// When there are not we are on a variable product page but not on a specific variable one
|
377 |
// In that case we need to put in the AggregateOffer structured data
|
378 |
$variation_id = woosea_find_matching_product_variation( $product, $_GET );
|
|
|
379 |
|
380 |
$nr_get = count($_GET);
|
381 |
|
403 |
$fb_price = $fb_lowprice;
|
404 |
}
|
405 |
}
|
406 |
+
$viewContent = "fbq('track','ViewContent',{content_category:'$cats', content_name:'$product_name', content_type:'product', content_ids:['$fb_prodid'], value: $fb_price, currency: '$currency'});";
|
407 |
} else {
|
408 |
// This is a parent variable product
|
409 |
// Since these are not allowed in the feed, at the variations product ID's
|
415 |
$content .= $id.',';
|
416 |
}
|
417 |
|
418 |
+
$content = rtrim($content, ",");
|
419 |
$prices = $product->get_variation_prices();
|
420 |
$lowest = reset( $prices['price'] );
|
421 |
$highest = end( $prices['price'] );
|
427 |
$fb_highprice = wc_format_decimal( $highest, wc_get_price_decimals() );
|
428 |
$fb_price = $fb_lowprice;
|
429 |
}
|
430 |
+
$viewContent = "fbq('track','ViewContent',{content_category:'$cats', content_name:'$product_name', content_type:'product_group', content_ids:[$content], value: $fb_price, currency:'$currency'});";
|
431 |
}
|
432 |
} else {
|
433 |
$fb_price = wc_format_decimal( $product->get_price(), wc_get_price_decimals() );
|
434 |
+
$viewContent = "fbq('track','ViewContent',{content_category:'$cats', content_name:'$product_name', content_type:'product', content_ids:['$fb_prodid'], value: $fb_price, currency:'$currency'});";
|
435 |
}
|
436 |
}
|
437 |
}
|
456 |
$order_subtotal = $order_item->get_subtotal();
|
457 |
$order_subtotal_tax= $order_item->get_subtotal_tax();
|
458 |
$order_real = number_format(($order_subtotal+$order_subtotal_tax),2)+$order_real;
|
459 |
+
$contents .= "{id: '$prod_id', quantity: $prod_quantity},";
|
460 |
}
|
461 |
}
|
462 |
$contents = rtrim($contents, ",");
|
463 |
+
$viewContent = "fbq('track','Purchase',{currency:'$currency', value:$order_real, content_type: 'product', contents:[$contents]});";
|
464 |
}
|
465 |
} else {
|
466 |
// This is on the cart page itself
|
488 |
|
489 |
// User is on the billing pages
|
490 |
if($checkoutpage == $current_url){
|
491 |
+
$viewContent = "fbq('track','InitiateCheckout',{currency:'$currency', value:$cart_real, content_type:'product', content_ids:[$contents]});";
|
492 |
} else {
|
493 |
// User is on the basket page
|
494 |
+
$viewContent = "fbq('track','AddToCart',{currency:'$currency', value:$cart_real, content_type:'product', content_ids:[$contents]});";
|
495 |
}
|
496 |
}
|
497 |
}
|
522 |
$fb_prodid = rtrim($fb_prodid, ",");
|
523 |
$category_name = $term->name;
|
524 |
$category_path = woosea_get_term_parents( $term->term_id, 'product_cat', $link = false, $project_taxonomy = false, $nicename = false, $visited = array() );
|
525 |
+
$viewContent = "fbq(\"track\",\"ViewCategory\",{content_category:\"$category_path\", content_name:\"$category_name\", content_type:\"product\", content_ids:\"[$fb_prodid]\"});";
|
526 |
} elseif ($fb_pagetype == "searchresults"){
|
527 |
$term = get_queried_object();
|
528 |
$search_string = sanitize_text_field($_GET['s']);
|
4240 |
|
4241 |
if(!empty($license_information['license_key'])){
|
4242 |
$curl = curl_init();
|
4243 |
+
$url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.8.4";
|
4244 |
|
4245 |
curl_setopt_array($curl, array(
|
4246 |
CURLOPT_RETURNTRANSFER => 1,
|