CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.1.26

Version Description

Download this release

Release Info

Developer wahid0003
Plugin Icon 128x128 CTX Feed – WooCommerce Product Feed Manager Plugin
Version 3.1.26
Comparing to
See all releases

Code changes from version 3.1.25 to 3.1.26

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://webappick.com
4
  Tags:woocommerce,google product feed,facebook product feed,woocommerce product feed,woocommerce,
5
  Requires at least: 3.6
6
  Tested Up To: 5.2
7
- Stable tag: 3.1.25
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -304,6 +304,9 @@ Using pro version:
304
 
305
  == Changelog ==
306
 
 
 
 
307
  = 3.1.25(2019-09-09) =
308
  * Added: fyndiq.se template added
309
 
4
  Tags:woocommerce,google product feed,facebook product feed,woocommerce product feed,woocommerce,
5
  Requires at least: 3.6
6
  Tested Up To: 5.2
7
+ Stable tag: 3.1.26
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
304
 
305
  == Changelog ==
306
 
307
+ = 3.1.26(2019-09-11) =
308
+ * Added: google attribute dropdown issue solved
309
+
310
  = 3.1.25(2019-09-09) =
311
  * Added: fyndiq.se template added
312
 
includes/classes/class-woo-feed-dropdown.php CHANGED
@@ -615,33 +615,22 @@ class Woo_Feed_Dropdown
615
  */
616
  public function googleAttributesDropdown($selected = "")
617
  {
618
- if(get_option('wf_feed_google_attributes'))
619
- {
620
- $old_data = get_option('wf_feed_google_attributes');
621
- update_option('woo_feed_google_attributes', serialize($old_data));
622
- delete_option('wf_feed_google_attributes');
623
- }
624
- if(!get_option('woo_feed_google_attributes'))
625
- {
626
- $attributes = new Woo_Feed_Default_Attributes();
627
- $str = "<option></option>";
628
- foreach ($attributes->googleAttributes() as $key => $value) {
629
- if (substr($key, 0, 2) == "--") {
630
- $str .= "<optgroup label='$value'>";
631
- } elseif (substr($key, 0, 2) == "---") {
632
- $str .= "</optgroup>";
633
- } else {
634
- $str .= "<option value='$key'>" . $value . "</option>";
635
- }
636
  }
637
- update_option('woo_feed_google_attributes', serialize($str));
638
- }
639
 
640
- $google_attributes = get_option('woo_feed_google_attributes');
641
-
642
- $pos = strpos($google_attributes, "value='". $selected . "'");
643
-
644
- return substr_replace($google_attributes, "selected='selected' ", $pos, 0);
645
  }
646
 
647
  /**
615
  */
616
  public function googleAttributesDropdown($selected = "")
617
  {
618
+ $attributes = new Woo_Feed_Default_Attributes();
619
+ $str = "<option></option>";
620
+ foreach ($attributes->googleAttributes() as $key => $value) {
621
+ if (substr($key, 0, 2) == "--") {
622
+ $str .= "<optgroup label='$value'>";
623
+ } elseif (substr($key, 0, 2) == "---") {
624
+ $str .= "</optgroup>";
625
+ } else {
626
+ $sltd = "";
627
+ if ($selected == $key)
628
+ $sltd = 'selected="selected"';
629
+ $str .= "<option $sltd value='$key'>" . $value . "</option>";
 
 
 
 
 
 
630
  }
 
 
631
 
632
+ }
633
+ return $str;
 
 
 
634
  }
635
 
636
  /**
woo-feed.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WooCommerce Product Feed
17
  * Plugin URI: https://webappick.com/
18
  * Description: This plugin generate WooCommerce product feed for Shopping Engines like Google Shopping,Facebook Product Feed,eBay,Amazon,Idealo and many more..
19
- * Version: 3.1.25
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
@@ -36,7 +36,7 @@ if (!defined('ABSPATH')) {
36
  exit;
37
  }
38
 
39
- define("WOO_FEED_VERSION", "3.1.25");
40
 
41
  /**
42
  * The core plugin class that is used to define internationalization,
16
  * Plugin Name: WooCommerce Product Feed
17
  * Plugin URI: https://webappick.com/
18
  * Description: This plugin generate WooCommerce product feed for Shopping Engines like Google Shopping,Facebook Product Feed,eBay,Amazon,Idealo and many more..
19
+ * Version: 3.1.26
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
36
  exit;
37
  }
38
 
39
+ define("WOO_FEED_VERSION", "3.1.26");
40
 
41
  /**
42
  * The core plugin class that is used to define internationalization,