Version Description
- Fixed: Fatal error affecting Product export with WooCommerce Custom Fields Plugin (thanks @kramarz)
Download this release
Release Info
Developer | visser |
Plugin | WooCommerce – Store Exporter |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.2.1
- exporter.php +1 -1
- includes/product-extend.php +57 -2
- readme.txt +5 -2
exporter.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WooCommerce - Store Exporter
|
4 |
* Plugin URI: http://www.visser.com.au/woocommerce/plugins/exporter/
|
5 |
* Description: Export store details out of WooCommerce into simple formatted files (e.g. CSV, TSV, Excel formats including XLS and XLSX, XML, etc.)
|
6 |
-
* Version: 2.2
|
7 |
* Author: Visser Labs
|
8 |
* Author URI: http://www.visser.com.au/about/
|
9 |
* License: GPL2
|
3 |
* Plugin Name: WooCommerce - Store Exporter
|
4 |
* Plugin URI: http://www.visser.com.au/woocommerce/plugins/exporter/
|
5 |
* Description: Export store details out of WooCommerce into simple formatted files (e.g. CSV, TSV, Excel formats including XLS and XLSX, XML, etc.)
|
6 |
+
* Version: 2.2.1
|
7 |
* Author: Visser Labs
|
8 |
* Author URI: http://www.visser.com.au/about/
|
9 |
* License: GPL2
|
includes/product-extend.php
CHANGED
@@ -944,7 +944,10 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
944 |
}
|
945 |
|
946 |
// WooCommerce Multilingual - https://wordpress.org/plugins/woocommerce-multilingual/
|
947 |
-
if(
|
|
|
|
|
|
|
948 |
$fields[] = array(
|
949 |
'name' => 'language',
|
950 |
'label' => __( 'Language', 'woocommerce-exporter' ),
|
@@ -954,7 +957,10 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
954 |
}
|
955 |
|
956 |
// WooCommerce Jetpack - http://woojetpack.com/shop/wordpress-woocommerce-jetpack-plus/
|
957 |
-
if(
|
|
|
|
|
|
|
958 |
|
959 |
// @mod - Needs alot of love in 2.4+, JetPack Plus, now Booster is huge
|
960 |
|
@@ -1699,6 +1705,55 @@ function woo_ce_get_wccf_product_properties() {
|
|
1699 |
|
1700 |
}
|
1701 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1702 |
// Advanced Google Product Feed - http://plugins.leewillis.co.uk/downloads/wp-e-commerce-product-feeds/
|
1703 |
function woo_ce_format_gpf_availability( $availability = null ) {
|
1704 |
|
944 |
}
|
945 |
|
946 |
// WooCommerce Multilingual - https://wordpress.org/plugins/woocommerce-multilingual/
|
947 |
+
if(
|
948 |
+
woo_ce_detect_wpml() &&
|
949 |
+
woo_ce_detect_export_plugin( 'wpml_wc' )
|
950 |
+
) {
|
951 |
$fields[] = array(
|
952 |
'name' => 'language',
|
953 |
'label' => __( 'Language', 'woocommerce-exporter' ),
|
957 |
}
|
958 |
|
959 |
// WooCommerce Jetpack - http://woojetpack.com/shop/wordpress-woocommerce-jetpack-plus/
|
960 |
+
if(
|
961 |
+
woo_ce_detect_export_plugin( 'woocommerce_jetpack' ) ||
|
962 |
+
woo_ce_detect_export_plugin( 'woocommerce_jetpack_plus' )
|
963 |
+
) {
|
964 |
|
965 |
// @mod - Needs alot of love in 2.4+, JetPack Plus, now Booster is huge
|
966 |
|
1705 |
|
1706 |
}
|
1707 |
|
1708 |
+
// WC Fields Factory - https://wordpress.org/plugins/wc-fields-factory/
|
1709 |
+
function woo_ce_get_wcff_admin_fields() {
|
1710 |
+
|
1711 |
+
$post_type = 'wccaf';
|
1712 |
+
$args = array(
|
1713 |
+
'post_type' => $post_type,
|
1714 |
+
'post_status' => 'publish',
|
1715 |
+
'posts_per_page' => -1,
|
1716 |
+
'fields' => 'ids'
|
1717 |
+
);
|
1718 |
+
$admin_groups = new WP_Query( $args );
|
1719 |
+
if( !empty( $admin_groups->posts ) ) {
|
1720 |
+
$admin_fields = array();
|
1721 |
+
$prefix = 'wccaf_';
|
1722 |
+
$excluded_meta = array(
|
1723 |
+
$prefix . 'condition_rules',
|
1724 |
+
$prefix . 'location_rules',
|
1725 |
+
$prefix . 'group_rules',
|
1726 |
+
$prefix . 'pricing_rules',
|
1727 |
+
$prefix . 'fee_rules',
|
1728 |
+
$prefix . 'sub_fields_group_rules'
|
1729 |
+
);
|
1730 |
+
foreach( $admin_groups->posts as $post_id ) {
|
1731 |
+
$meta = get_post_meta( $post_id );
|
1732 |
+
foreach( $meta as $key => $meta_value ) {
|
1733 |
+
// Meta name must contain the prefix
|
1734 |
+
if( preg_match( '/' . $prefix . '/', $key ) ) {
|
1735 |
+
// Skip default meta
|
1736 |
+
if( !in_array( $key, $excluded_meta ) ) {
|
1737 |
+
$meta_value = json_decode( $meta_value[0] );
|
1738 |
+
if( !is_object( $meta_value ) )
|
1739 |
+
continue;
|
1740 |
+
|
1741 |
+
$admin_fields[] = array(
|
1742 |
+
'name' => $meta_value->name,
|
1743 |
+
'label' => $meta_value->label,
|
1744 |
+
'type' => $meta_value->type
|
1745 |
+
);
|
1746 |
+
|
1747 |
+
}
|
1748 |
+
}
|
1749 |
+
}
|
1750 |
+
}
|
1751 |
+
unset( $admin_groups, $meta );
|
1752 |
+
return $admin_fields;
|
1753 |
+
}
|
1754 |
+
|
1755 |
+
}
|
1756 |
+
|
1757 |
// Advanced Google Product Feed - http://plugins.leewillis.co.uk/downloads/wp-e-commerce-product-feeds/
|
1758 |
function woo_ce_format_gpf_availability( $availability = null ) {
|
1759 |
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Contributors: visser, visser.labs
|
|
4 |
Donate link: https://www.visser.com.au/donations/
|
5 |
Tags: woocommerce, export, products, sales, orders, coupons, users, subscriptions, csv
|
6 |
Requires at least: 2.9.2
|
7 |
-
Tested up to: 5.2.
|
8 |
-
Stable tag: 2.2
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Export store details out of WooCommerce into simple formatted files (e.g. CSV, XML, Excel 2007, XLS, etc.).
|
@@ -155,6 +155,9 @@ If you have any problems, questions or suggestions please create a topic here on
|
|
155 |
|
156 |
== Changelog ==
|
157 |
|
|
|
|
|
|
|
158 |
= 2.2 =
|
159 |
* Added: Description to Category export type (thanks @yatgirl)
|
160 |
* Added: Net Price to Product export type
|
4 |
Donate link: https://www.visser.com.au/donations/
|
5 |
Tags: woocommerce, export, products, sales, orders, coupons, users, subscriptions, csv
|
6 |
Requires at least: 2.9.2
|
7 |
+
Tested up to: 5.2.4
|
8 |
+
Stable tag: 2.2.1
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Export store details out of WooCommerce into simple formatted files (e.g. CSV, XML, Excel 2007, XLS, etc.).
|
155 |
|
156 |
== Changelog ==
|
157 |
|
158 |
+
= 2.2.1 =
|
159 |
+
* Fixed: Fatal error affecting Product export with WooCommerce Custom Fields Plugin (thanks @kramarz)
|
160 |
+
|
161 |
= 2.2 =
|
162 |
* Added: Description to Category export type (thanks @yatgirl)
|
163 |
* Added: Net Price to Product export type
|