Product Feed PRO for WooCommerce - Version 7.4.0

Version Description

Solved a PHP is_type error

Download this release

Release Info

Developer jorisverwater
Plugin Icon 128x128 Product Feed PRO for WooCommerce
Version 7.4.0
Comparing to
See all releases

Code changes from version 7.3.9 to 7.4.0

Files changed (3) hide show
  1. js/woosea_key.js +1 -1
  2. readme.txt +7 -1
  3. woocommerce-sea.php +31 -5
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.3.9',
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.4.0',
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.3.9
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.3.9 (2020-02-06) =
316
  * Added extra Moebel.be template fields
317
 
@@ -2347,6 +2350,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2347
 
2348
  == Upgrade Notice ==
2349
 
 
 
 
2350
  = 7.3.9 =
2351
  Added extra Moebel.be template fields
2352
 
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.4.0
9
 
10
  == Description ==
11
 
312
 
313
  === Changelog ===
314
 
315
+ = 7.4.0 (2020-02-08) =
316
+ * Solved a PHP is_type error
317
+
318
  = 7.3.9 (2020-02-06) =
319
  * Added extra Moebel.be template fields
320
 
2350
 
2351
  == Upgrade Notice ==
2352
 
2353
+ = 7.4.0 =
2354
+ Solved a PHP is_type error
2355
+
2356
  = 7.3.9 =
2357
  Added extra Moebel.be template fields
2358
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 7.3.9
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.3.9' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -366,6 +366,11 @@ function woosea_add_facebook_pixel( $product = null ){
366
  $cats = str_replace("&amp;","&", $cats);
367
 
368
  if(!empty($fb_prodid)){
 
 
 
 
 
369
  if ( $product->is_type( 'variable' ) ) {
370
  // We should first check if there are any _GET parameters available
371
  // When there are not we are on a variable product page but not on a specific variable one
@@ -496,6 +501,10 @@ function woosea_add_facebook_pixel( $product = null ){
496
 
497
  foreach ($ids as $id){
498
  $_product = wc_get_product($id);
 
 
 
 
499
  if($_product->is_type('simple')){
500
  // Add the simple product ID
501
  $fb_prodid .= $id.',';
@@ -595,6 +604,11 @@ function woosea_add_remarketing_tags( $product = null ){
595
  $ecomm_prodid = get_the_id();
596
 
597
  if(!empty($ecomm_prodid)){
 
 
 
 
 
598
  if ( $product->is_type( 'variable' ) ) {
599
  // We should first check if there are any _GET parameters available
600
  // When there are not we are on a variable product page but not on a specific variable one
@@ -1224,7 +1238,11 @@ function woosea_product_delete_meta_price( $product = null ) {
1224
 
1225
  // Assume prices will be valid until the end of next year, unless on sale and there is an end date.
1226
  $price_valid_until = date( 'Y-12-31', current_time( 'timestamp', true ) + YEAR_IN_SECONDS );
1227
-
 
 
 
 
1228
  if ( $product->is_type( 'variable' ) ) {
1229
  // We should first check if there are any _GET parameters available
1230
  // When there are not we are on a variable product page but not on a specific variable one
@@ -1445,7 +1463,11 @@ function woosea_product_delete_meta_price( $product = null ) {
1445
  if ( '' !== $product->get_price() ) {
1446
 
1447
  $price_valid_until = date( 'Y-12-31', current_time( 'timestamp', true ) + YEAR_IN_SECONDS );
1448
-
 
 
 
 
1449
  if ( $product->is_type( 'variable' ) ) {
1450
  $prices = $product->get_variation_prices();
1451
  $lowest = reset( $prices['price'] );
@@ -3579,6 +3601,10 @@ function woosea_autocomplete_mapping() {
3579
  global $product;
3580
  $product_title = $product->get_title();
3581
 
 
 
 
 
3582
  if ($product->is_type( 'variable' )) {
3583
  $attrv = $product->get_variation_attributes();
3584
  foreach ($attrv as $ka => $va){
@@ -3800,7 +3826,7 @@ function woosea_license_valid(){
3800
 
3801
  if(!empty($license_information['license_key'])){
3802
  $curl = curl_init();
3803
- $url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.3.9";
3804
 
3805
  curl_setopt_array($curl, array(
3806
  CURLOPT_RETURNTRANSFER => 1,
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 7.4.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
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
+ define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '7.4.0' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
366
  $cats = str_replace("&amp;","&", $cats);
367
 
368
  if(!empty($fb_prodid)){
369
+
370
+ if(!$product) {
371
+ return -1;
372
+ }
373
+
374
  if ( $product->is_type( 'variable' ) ) {
375
  // We should first check if there are any _GET parameters available
376
  // When there are not we are on a variable product page but not on a specific variable one
501
 
502
  foreach ($ids as $id){
503
  $_product = wc_get_product($id);
504
+ if(!$_product) {
505
+ return -1;
506
+ }
507
+
508
  if($_product->is_type('simple')){
509
  // Add the simple product ID
510
  $fb_prodid .= $id.',';
604
  $ecomm_prodid = get_the_id();
605
 
606
  if(!empty($ecomm_prodid)){
607
+
608
+ if(!$product) {
609
+ return -1;
610
+ }
611
+
612
  if ( $product->is_type( 'variable' ) ) {
613
  // We should first check if there are any _GET parameters available
614
  // When there are not we are on a variable product page but not on a specific variable one
1238
 
1239
  // Assume prices will be valid until the end of next year, unless on sale and there is an end date.
1240
  $price_valid_until = date( 'Y-12-31', current_time( 'timestamp', true ) + YEAR_IN_SECONDS );
1241
+
1242
+ if(!$product) {
1243
+ return -1;
1244
+ }
1245
+
1246
  if ( $product->is_type( 'variable' ) ) {
1247
  // We should first check if there are any _GET parameters available
1248
  // When there are not we are on a variable product page but not on a specific variable one
1463
  if ( '' !== $product->get_price() ) {
1464
 
1465
  $price_valid_until = date( 'Y-12-31', current_time( 'timestamp', true ) + YEAR_IN_SECONDS );
1466
+
1467
+ if(!$_product) {
1468
+ return -1;
1469
+ }
1470
+
1471
  if ( $product->is_type( 'variable' ) ) {
1472
  $prices = $product->get_variation_prices();
1473
  $lowest = reset( $prices['price'] );
3601
  global $product;
3602
  $product_title = $product->get_title();
3603
 
3604
+ if(!$product) {
3605
+ return -1;
3606
+ }
3607
+
3608
  if ($product->is_type( 'variable' )) {
3609
  $attrv = $product->get_variation_attributes();
3610
  foreach ($attrv as $ka => $va){
3826
 
3827
  if(!empty($license_information['license_key'])){
3828
  $curl = curl_init();
3829
+ $url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.4.0";
3830
 
3831
  curl_setopt_array($curl, array(
3832
  CURLOPT_RETURNTRANSFER => 1,