Version Description
Download this release
Release Info
Developer | wahid0003 |
Plugin | CTX Feed – WooCommerce Product Feed Manager Plugin |
Version | 3.1.10 |
Comparing to | |
See all releases |
Code changes from version 3.1.9 to 3.1.10
- README.txt +4 -1
- includes/classes/class-woo-feed-dropdown.php +20 -16
- includes/classes/class-woo-feed-products.php +37 -37
- woo-feed.php +2 -2
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -303,6 +303,9 @@ Using pro version:
|
|
303 |
|
304 |
== Changelog ==
|
305 |
|
|
|
|
|
|
|
306 |
= 3.1.9(2019-07-11) =
|
307 |
* Added: shopalike.fr template added
|
308 |
|
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.10
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
303 |
|
304 |
== Changelog ==
|
305 |
|
306 |
+
= 3.1.10(2019-07-15) =
|
307 |
+
* Fixed: google template slowly loading issue fixed
|
308 |
+
|
309 |
= 3.1.9(2019-07-11) =
|
310 |
* Added: shopalike.fr template added
|
311 |
|
includes/classes/class-woo-feed-dropdown.php
CHANGED
@@ -615,22 +615,26 @@ class Woo_Feed_Dropdown
|
|
615 |
*/
|
616 |
public function googleAttributesDropdown($selected = "")
|
617 |
{
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
$
|
629 |
-
|
630 |
-
}
|
631 |
-
|
632 |
-
}
|
633 |
-
|
|
|
|
|
|
|
|
|
634 |
}
|
635 |
|
636 |
/**
|
615 |
*/
|
616 |
public function googleAttributesDropdown($selected = "")
|
617 |
{
|
618 |
+
if(!get_option('wf_feed_google_attributes'))
|
619 |
+
{
|
620 |
+
$attributes = new Woo_Feed_Default_Attributes();
|
621 |
+
$str = "<option></option>";
|
622 |
+
foreach ($attributes->googleAttributes() as $key => $value) {
|
623 |
+
if (substr($key, 0, 2) == "--") {
|
624 |
+
$str .= "<optgroup label='$value'>";
|
625 |
+
} elseif (substr($key, 0, 2) == "---") {
|
626 |
+
$str .= "</optgroup>";
|
627 |
+
} else {
|
628 |
+
$str .= "<option value='$key'>" . $value . "</option>";
|
629 |
+
}
|
630 |
+
}
|
631 |
+
update_option('wf_feed_google_attributes', serialize($str));
|
632 |
+
}
|
633 |
+
$google_attributes = get_option('wf_feed_google_attributes');
|
634 |
+
|
635 |
+
$pos = strpos($google_attributes, "value='". $selected . "'");
|
636 |
+
|
637 |
+
return substr_replace($google_attributes, "selected='selected' ", $pos, 0);
|
638 |
}
|
639 |
|
640 |
/**
|
includes/classes/class-woo-feed-products.php
CHANGED
@@ -1740,7 +1740,7 @@ class Woo_Feed_Products
|
|
1740 |
*
|
1741 |
* @return mixed
|
1742 |
*/
|
1743 |
-
public function getAllTaxonomy($name = "
|
1744 |
{
|
1745 |
global $wpdb;
|
1746 |
//Load the taxonomies
|
@@ -1780,26 +1780,26 @@ class Woo_Feed_Products
|
|
1780 |
return false;
|
1781 |
}
|
1782 |
|
1783 |
-
/**
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
public function dynamicAttributes()
|
1788 |
-
{
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
1795 |
-
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
}
|
1803 |
|
1804 |
/**
|
1805 |
* Local Attribute List to map product value with merchant attributes
|
@@ -1904,20 +1904,20 @@ class Woo_Feed_Products
|
|
1904 |
}
|
1905 |
|
1906 |
# Get All Custom Attributes
|
1907 |
-
$customAttributes = $this->getAllCustomAttributes();
|
1908 |
-
if ($customAttributes) {
|
1909 |
-
|
1910 |
-
|
1911 |
-
|
1912 |
-
|
1913 |
-
|
1914 |
-
|
1915 |
-
|
1916 |
-
|
1917 |
-
|
1918 |
-
|
1919 |
-
|
1920 |
-
}
|
1921 |
return $str;
|
1922 |
}
|
1923 |
|
@@ -1931,8 +1931,8 @@ class Woo_Feed_Products
|
|
1931 |
update_option("wpfw_vAttributes", $vAttributes);
|
1932 |
|
1933 |
# Get All Custom Attributes
|
1934 |
-
$customAttributes = $this->getAllCustomAttributes();
|
1935 |
-
update_option("wpfw_customAttributes", $customAttributes);
|
1936 |
}
|
1937 |
|
1938 |
/**
|
1740 |
*
|
1741 |
* @return mixed
|
1742 |
*/
|
1743 |
+
public function getAllTaxonomy($name = "")
|
1744 |
{
|
1745 |
global $wpdb;
|
1746 |
//Load the taxonomies
|
1780 |
return false;
|
1781 |
}
|
1782 |
|
1783 |
+
// /**
|
1784 |
+
// * Get Dynamic Attribute List
|
1785 |
+
// * @return bool|array
|
1786 |
+
// */
|
1787 |
+
// public function dynamicAttributes()
|
1788 |
+
// {
|
1789 |
+
// global $wpdb;
|
1790 |
+
|
1791 |
+
// # Load Custom Category Mapped Attributes
|
1792 |
+
// $var = "wf_dattribute_";
|
1793 |
+
// $sql = $wpdb->prepare("SELECT * FROM $wpdb->options WHERE option_name LIKE %s;", $var . "%");
|
1794 |
+
// $data = $wpdb->get_results($sql);
|
1795 |
+
// if (count($data)) {
|
1796 |
+
// foreach ($data as $key => $value) {
|
1797 |
+
// $info[$key] = $value->option_name;
|
1798 |
+
// }
|
1799 |
+
// return $info;
|
1800 |
+
// }
|
1801 |
+
// return false;
|
1802 |
+
// }
|
1803 |
|
1804 |
/**
|
1805 |
* Local Attribute List to map product value with merchant attributes
|
1904 |
}
|
1905 |
|
1906 |
# Get All Custom Attributes
|
1907 |
+
// $customAttributes = $this->getAllCustomAttributes();
|
1908 |
+
// if ($customAttributes) {
|
1909 |
+
// $str .= "<optgroup label='Variation & Custom Attributes'>";
|
1910 |
+
// foreach ($customAttributes as $key => $value) {
|
1911 |
+
// if (strpos($value, 0, 1) != "_") {
|
1912 |
+
// $sltd = "";
|
1913 |
+
// if ($selected == $key) {
|
1914 |
+
// $sltd = 'selected="selected"';
|
1915 |
+
// }
|
1916 |
+
// $str .= "<option $sltd value='$key'>" . $value . "</option>";
|
1917 |
+
// }
|
1918 |
+
// }
|
1919 |
+
// $str .= "</optgroup>";
|
1920 |
+
// }
|
1921 |
return $str;
|
1922 |
}
|
1923 |
|
1931 |
update_option("wpfw_vAttributes", $vAttributes);
|
1932 |
|
1933 |
# Get All Custom Attributes
|
1934 |
+
// $customAttributes = $this->getAllCustomAttributes();
|
1935 |
+
// update_option("wpfw_customAttributes", $customAttributes);
|
1936 |
}
|
1937 |
|
1938 |
/**
|
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.
|
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.
|
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.10
|
20 |
* Author: WebAppick
|
21 |
* Author URI: https://webappick.com/
|
22 |
* License: GPL v2
|
36 |
exit;
|
37 |
}
|
38 |
|
39 |
+
define("WOO_FEED_VERSION", "3.1.10");
|
40 |
|
41 |
/**
|
42 |
* The core plugin class that is used to define internationalization,
|