Version Description
- Added: Description to Category export type (thanks @yatgirl)
- Added: Net Price to Product export type
Download this release
Release Info
Developer | visser |
Plugin | WooCommerce – Store Exporter |
Version | 2.2 |
Comparing to | |
See all releases |
Code changes from version 2.1 to 2.2
- exporter.php +1 -1
- includes/product-extend.php +258 -57
- includes/product.php +5 -42
- includes/tag.php +4 -0
- readme.txt +16 -13
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.
|
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
|
7 |
* Author: Visser Labs
|
8 |
* Author URI: http://www.visser.com.au/about/
|
9 |
* License: GPL2
|
includes/product-extend.php
CHANGED
@@ -10,6 +10,7 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
10 |
'disabled' => 1
|
11 |
);
|
12 |
}
|
|
|
13 |
/*
|
14 |
// Attributes
|
15 |
if( $attributes = woo_ce_get_product_attributes() ) {
|
@@ -24,62 +25,62 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
24 |
}
|
25 |
*/
|
26 |
|
27 |
-
//
|
28 |
if( woo_ce_detect_export_plugin( 'gpf' ) ) {
|
29 |
$fields[] = array(
|
30 |
'name' => 'gpf_availability',
|
31 |
-
'label' => __( '
|
32 |
-
'hover' => __( '
|
33 |
);
|
34 |
$fields[] = array(
|
35 |
'name' => 'gpf_condition',
|
36 |
-
'label' => __( '
|
37 |
-
'hover' => __( '
|
38 |
);
|
39 |
$fields[] = array(
|
40 |
'name' => 'gpf_brand',
|
41 |
-
'label' => __( '
|
42 |
-
'hover' => __( '
|
43 |
);
|
44 |
$fields[] = array(
|
45 |
'name' => 'gpf_product_type',
|
46 |
-
'label' => __( '
|
47 |
-
'hover' => __( '
|
48 |
);
|
49 |
$fields[] = array(
|
50 |
'name' => 'gpf_google_product_category',
|
51 |
-
'label' => __( '
|
52 |
-
'hover' => __( '
|
53 |
);
|
54 |
$fields[] = array(
|
55 |
'name' => 'gpf_gtin',
|
56 |
-
'label' => __( '
|
57 |
-
'hover' => __( '
|
58 |
);
|
59 |
$fields[] = array(
|
60 |
'name' => 'gpf_mpn',
|
61 |
-
'label' => __( '
|
62 |
-
'hover' => __( '
|
63 |
);
|
64 |
$fields[] = array(
|
65 |
'name' => 'gpf_gender',
|
66 |
-
'label' => __( '
|
67 |
-
'hover' => __( '
|
68 |
);
|
69 |
$fields[] = array(
|
70 |
'name' => 'gpf_agegroup',
|
71 |
-
'label' => __( '
|
72 |
-
'hover' => __( '
|
73 |
);
|
74 |
$fields[] = array(
|
75 |
-
'name' => '
|
76 |
-
'label' => __( '
|
77 |
-
'hover' => __( '
|
78 |
);
|
79 |
$fields[] = array(
|
80 |
'name' => 'gpf_size',
|
81 |
-
'label' => __( '
|
82 |
-
'hover' => __( '
|
83 |
);
|
84 |
}
|
85 |
|
@@ -174,6 +175,11 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
174 |
'label' => __( 'WordPress SEO - Twitter Image', 'woocommerce-exporter' ),
|
175 |
'hover' => __( 'WordPress SEO', 'woocommerce-exporter' )
|
176 |
);
|
|
|
|
|
|
|
|
|
|
|
177 |
}
|
178 |
|
179 |
// Ultimate SEO - http://wordpress.org/plugins/seo-ultimate/
|
@@ -236,11 +242,72 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
236 |
);
|
237 |
}
|
238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
// Cost of Goods - http://www.skyverge.com/product/woocommerce-cost-of-goods-tracking/
|
240 |
if( woo_ce_detect_export_plugin( 'wc_cog' ) ) {
|
241 |
$fields[] = array(
|
242 |
'name' => 'cost_of_goods',
|
243 |
-
'label' => __( 'Cost of
|
244 |
'hover' => __( 'Cost of Goods', 'woocommerce-exporter' ),
|
245 |
'disabled' => 1
|
246 |
);
|
@@ -346,6 +413,22 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
346 |
);
|
347 |
}
|
348 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
// WooCommerce Wholesale Pricing - http://ignitewoo.com/woocommerce-extensions-plugins-themes/woocommerce-wholesale-pricing/
|
350 |
if( woo_ce_detect_export_plugin( 'wholesale_pricing' ) ) {
|
351 |
$fields[] = array(
|
@@ -368,14 +451,14 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
368 |
if( !empty( $custom_fields ) ) {
|
369 |
foreach( $custom_fields as $custom_field ) {
|
370 |
$fields[] = array(
|
371 |
-
'name' => $custom_field['name'],
|
372 |
'label' => $custom_field['label'],
|
373 |
'hover' => __( 'Advanced Custom Fields', 'woocommerce-exporter' ),
|
374 |
'disabled' => 1
|
375 |
);
|
376 |
}
|
377 |
-
unset( $custom_fields, $custom_field );
|
378 |
}
|
|
|
379 |
}
|
380 |
|
381 |
// WooCommerce Custom Fields - http://www.rightpress.net/woocommerce-custom-fields
|
@@ -417,6 +500,23 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
417 |
unset( $custom_fields, $custom_field );
|
418 |
}
|
419 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
420 |
// WooCommerce Subscriptions - http://www.woothemes.com/products/woocommerce-subscriptions/
|
421 |
if( woo_ce_detect_export_plugin( 'subscriptions' ) ) {
|
422 |
$fields[] = array(
|
@@ -581,80 +681,110 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
581 |
);
|
582 |
}
|
583 |
|
584 |
-
// WooCommerce
|
585 |
-
if( woo_ce_detect_export_plugin( '
|
586 |
$fields[] = array(
|
587 |
'name' => 'is_event',
|
588 |
'label' => __( 'Is Event', 'woocommerce-exporter' ),
|
589 |
-
'hover' => __( 'WooCommerce
|
590 |
'disabled' => 1
|
591 |
);
|
592 |
$fields[] = array(
|
593 |
'name' => 'event_date',
|
594 |
'label' => __( 'Event Date', 'woocommerce-exporter' ),
|
595 |
-
'hover' => __( 'WooCommerce
|
596 |
'disabled' => 1
|
597 |
);
|
598 |
$fields[] = array(
|
599 |
'name' => 'event_start_time',
|
600 |
'label' => __( 'Event Start Time', 'woocommerce-exporter' ),
|
601 |
-
'hover' => __( 'WooCommerce
|
602 |
'disabled' => 1
|
603 |
);
|
604 |
$fields[] = array(
|
605 |
'name' => 'event_end_time',
|
606 |
'label' => __( 'Event End Time', 'woocommerce-exporter' ),
|
607 |
-
'hover' => __( 'WooCommerce
|
608 |
'disabled' => 1
|
609 |
);
|
610 |
$fields[] = array(
|
611 |
'name' => 'event_venue',
|
612 |
'label' => __( 'Event Venue', 'woocommerce-exporter' ),
|
613 |
-
'hover' => __( 'WooCommerce
|
614 |
'disabled' => 1
|
615 |
);
|
616 |
$fields[] = array(
|
617 |
'name' => 'event_gps',
|
618 |
'label' => __( 'Event GPS Coordinates', 'woocommerce-exporter' ),
|
619 |
-
'hover' => __( 'WooCommerce
|
620 |
'disabled' => 1
|
621 |
);
|
622 |
$fields[] = array(
|
623 |
'name' => 'event_googlemaps',
|
624 |
'label' => __( 'Event Google Maps Coordinates', 'woocommerce-exporter' ),
|
625 |
-
'hover' => __( 'WooCommerce
|
626 |
'disabled' => 1
|
627 |
);
|
628 |
$fields[] = array(
|
629 |
'name' => 'event_directions',
|
630 |
'label' => __( 'Event Directions', 'woocommerce-exporter' ),
|
631 |
-
'hover' => __( 'WooCommerce
|
632 |
'disabled' => 1
|
633 |
);
|
634 |
$fields[] = array(
|
635 |
'name' => 'event_phone',
|
636 |
'label' => __( 'Event Phone', 'woocommerce-exporter' ),
|
637 |
-
'hover' => __( 'WooCommerce
|
638 |
'disabled' => 1
|
639 |
);
|
640 |
$fields[] = array(
|
641 |
'name' => 'event_email',
|
642 |
'label' => __( 'Event E-mail', 'woocommerce-exporter' ),
|
643 |
-
'hover' => __( 'WooCommerce
|
644 |
'disabled' => 1
|
645 |
);
|
646 |
$fields[] = array(
|
647 |
'name' => 'event_ticket_logo',
|
648 |
'label' => __( 'Event Ticket Logo', 'woocommerce-exporter' ),
|
649 |
-
'hover' => __( 'WooCommerce
|
|
|
|
|
|
|
|
|
|
|
|
|
650 |
'disabled' => 1
|
651 |
);
|
652 |
$fields[] = array(
|
653 |
'name' => 'event_ticket_text',
|
654 |
'label' => __( 'Event Ticket Text', 'woocommerce-exporter' ),
|
655 |
-
'hover' => __( 'WooCommerce
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
656 |
'disabled' => 1
|
657 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
658 |
}
|
659 |
|
660 |
// WooCommerce Uploads - https://wpfortune.com/shop/plugins/woocommerce-uploads/
|
@@ -792,6 +922,7 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
792 |
}
|
793 |
}
|
794 |
unset( $custom_books, $custom_book );
|
|
|
795 |
$fields[] = array(
|
796 |
'name' => 'book_category',
|
797 |
'label' => __( 'Book Category', 'woocommerce-exporter' ),
|
@@ -942,7 +1073,7 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
942 |
unset( $wholesale_roles, $wholesale_role, $key );
|
943 |
}
|
944 |
|
945 |
-
// WooCommerce Currency Switcher - http://
|
946 |
if( woo_ce_detect_export_plugin( 'currency_switcher' ) ) {
|
947 |
$options = get_option( 'wc_aelia_currency_switcher' );
|
948 |
$currencies = ( isset( $options['enabled_currencies'] ) ? $options['enabled_currencies'] : false );
|
@@ -954,6 +1085,8 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
954 |
if( $woocommerce_currency == $currency )
|
955 |
continue;
|
956 |
|
|
|
|
|
957 |
$fields[] = array(
|
958 |
'name' => sprintf( 'wcae_regular_price_%s', sanitize_key( $currency ) ),
|
959 |
'label' => sprintf( __( 'Regular Price (%s)', 'woocommerce-exporter' ), $currency ),
|
@@ -1231,6 +1364,20 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
1231 |
);
|
1232 |
}
|
1233 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1234 |
// SEO Squirrly - https://wordpress.org/plugins/squirrly-seo/
|
1235 |
if( woo_ce_detect_export_plugin( 'seo_squirrly' ) ) {
|
1236 |
$fields[] = array(
|
@@ -1243,6 +1390,7 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
1243 |
|
1244 |
// WooCommerce Measurement Price Calculator - http://www.woocommerce.com/products/measurement-price-calculator/
|
1245 |
if( woo_ce_detect_export_plugin( 'wc_measurement_price_calc' ) ) {
|
|
|
1246 |
$fields[] = array(
|
1247 |
'name' => 'area',
|
1248 |
'label' => __( 'Area', 'woocommerce-exporter' ),
|
@@ -1280,6 +1428,7 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
1280 |
'hover' => __( 'WooCommerce Measurement Price Calculator', 'woocommerce-exporter' ),
|
1281 |
'disabled' => 1
|
1282 |
);
|
|
|
1283 |
// Area
|
1284 |
$fields[] = array(
|
1285 |
'name' => 'measurement_area_pricing',
|
@@ -1299,6 +1448,7 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
1299 |
'hover' => __( 'WooCommerce Measurement Price Calculator', 'woocommerce-exporter' ),
|
1300 |
'disabled' => 1
|
1301 |
);
|
|
|
1302 |
// Area (LxW)
|
1303 |
$fields[] = array(
|
1304 |
'name' => 'measurement_area_dimension_pricing',
|
@@ -1385,6 +1535,7 @@ function woo_ce_extend_product_fields( $fields = array() ) {
|
|
1385 |
'hover' => __( 'WooCommerce Measurement Price Calculator', 'woocommerce-exporter' ),
|
1386 |
'disabled' => 1
|
1387 |
);
|
|
|
1388 |
// Surface Area
|
1389 |
// Volume
|
1390 |
// Volume (LxWxH)
|
@@ -1455,6 +1606,7 @@ function woo_ce_extend_product_item( $product, $product_id ) {
|
|
1455 |
$product->wpseo_twitter_title = get_post_meta( $product_id, '_yoast_wpseo_twitter-title', true );
|
1456 |
$product->wpseo_twitter_description = get_post_meta( $product_id, '_yoast_wpseo_twitter-description', true );
|
1457 |
$product->wpseo_twitter_image = get_post_meta( $product_id, '_yoast_wpseo_twitter-image', true );
|
|
|
1458 |
}
|
1459 |
|
1460 |
// Ultimate SEO - http://wordpress.org/plugins/seo-ultimate/
|
@@ -1493,6 +1645,45 @@ function woo_ce_extend_product_item( $product, $product_id ) {
|
|
1493 |
}
|
1494 |
add_filter( 'woo_ce_product_item', 'woo_ce_extend_product_item', 10, 2 );
|
1495 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1496 |
function woo_ce_get_wccf_product_properties() {
|
1497 |
|
1498 |
$post_type = 'wccf_product_prop';
|
@@ -1508,6 +1699,7 @@ function woo_ce_get_wccf_product_properties() {
|
|
1508 |
|
1509 |
}
|
1510 |
|
|
|
1511 |
function woo_ce_format_gpf_availability( $availability = null ) {
|
1512 |
|
1513 |
$output = '';
|
@@ -1533,6 +1725,7 @@ function woo_ce_format_gpf_availability( $availability = null ) {
|
|
1533 |
|
1534 |
}
|
1535 |
|
|
|
1536 |
function woo_ce_format_gpf_condition( $condition ) {
|
1537 |
|
1538 |
$output = '';
|
@@ -1558,6 +1751,7 @@ function woo_ce_format_gpf_condition( $condition ) {
|
|
1558 |
|
1559 |
}
|
1560 |
|
|
|
1561 |
function woo_ce_get_acf_product_fields() {
|
1562 |
|
1563 |
global $wpdb;
|
@@ -1567,12 +1761,14 @@ function woo_ce_get_acf_product_fields() {
|
|
1567 |
'post_type' => $post_type,
|
1568 |
'numberposts' => -1
|
1569 |
);
|
1570 |
-
|
|
|
1571 |
$fields = array();
|
1572 |
$post_types = array( 'product', 'product_variation' );
|
1573 |
foreach( $field_groups as $field_group ) {
|
1574 |
$has_fields = false;
|
1575 |
-
|
|
|
1576 |
$size = count( $rules );
|
1577 |
for( $i = 0; $i < $size; $i++ ) {
|
1578 |
if( ( $rules[$i]['param'] == 'post_type' ) && ( $rules[$i]['operator'] == '==' ) && ( in_array( $rules[$i]['value'], $post_types ) ) ) {
|
@@ -1582,25 +1778,30 @@ function woo_ce_get_acf_product_fields() {
|
|
1582 |
}
|
1583 |
}
|
1584 |
unset( $rules );
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
|
|
|
|
1595 |
}
|
1596 |
-
unset( $custom_fields, $custom_field );
|
1597 |
}
|
|
|
1598 |
}
|
|
|
1599 |
return $fields;
|
|
|
1600 |
}
|
1601 |
|
1602 |
}
|
1603 |
|
|
|
1604 |
function woo_ce_format_wpseo_noindex( $noindex = '' ) {
|
1605 |
|
1606 |
$output = $noindex;
|
@@ -1630,6 +1831,7 @@ function woo_ce_format_wpseo_noindex( $noindex = '' ) {
|
|
1630 |
|
1631 |
}
|
1632 |
|
|
|
1633 |
function woo_ce_format_wpseo_follow( $follow = '' ) {
|
1634 |
|
1635 |
$output = $follow;
|
@@ -1664,5 +1866,4 @@ function woo_ce_get_wholesale_prices_roles() {
|
|
1664 |
|
1665 |
return $output;
|
1666 |
|
1667 |
-
}
|
1668 |
-
?>
|
10 |
'disabled' => 1
|
11 |
);
|
12 |
}
|
13 |
+
|
14 |
/*
|
15 |
// Attributes
|
16 |
if( $attributes = woo_ce_get_product_attributes() ) {
|
25 |
}
|
26 |
*/
|
27 |
|
28 |
+
// WooCommerce Google Product Feed - http://www.leewillis.co.uk/wordpress-plugins/
|
29 |
if( woo_ce_detect_export_plugin( 'gpf' ) ) {
|
30 |
$fields[] = array(
|
31 |
'name' => 'gpf_availability',
|
32 |
+
'label' => __( 'WooCommerce Google Product Feed - Availability', 'woocommerce-exporter' ),
|
33 |
+
'hover' => __( 'WooCommerce Google Product Feed', 'woocommerce-exporter' )
|
34 |
);
|
35 |
$fields[] = array(
|
36 |
'name' => 'gpf_condition',
|
37 |
+
'label' => __( 'WooCommerce Google Product Feed - Condition', 'woocommerce-exporter' ),
|
38 |
+
'hover' => __( 'WooCommerce Google Product Feed', 'woocommerce-exporter' )
|
39 |
);
|
40 |
$fields[] = array(
|
41 |
'name' => 'gpf_brand',
|
42 |
+
'label' => __( 'WooCommerce Google Product Feed - Brand', 'woocommerce-exporter' ),
|
43 |
+
'hover' => __( 'WooCommerce Google Product Feed', 'woocommerce-exporter' )
|
44 |
);
|
45 |
$fields[] = array(
|
46 |
'name' => 'gpf_product_type',
|
47 |
+
'label' => __( 'WooCommerce Google Product Feed - Product Type', 'woocommerce-exporter' ),
|
48 |
+
'hover' => __( 'WooCommerce Google Product Feed', 'woocommerce-exporter' )
|
49 |
);
|
50 |
$fields[] = array(
|
51 |
'name' => 'gpf_google_product_category',
|
52 |
+
'label' => __( 'WooCommerce Google Product Feed - Google Product Category', 'woocommerce-exporter' ),
|
53 |
+
'hover' => __( 'WooCommerce Google Product Feed', 'woocommerce-exporter' )
|
54 |
);
|
55 |
$fields[] = array(
|
56 |
'name' => 'gpf_gtin',
|
57 |
+
'label' => __( 'WooCommerce Google Product Feed - Global Trade Item Number (GTIN)', 'woocommerce-exporter' ),
|
58 |
+
'hover' => __( 'WooCommerce Google Product Feed', 'woocommerce-exporter' )
|
59 |
);
|
60 |
$fields[] = array(
|
61 |
'name' => 'gpf_mpn',
|
62 |
+
'label' => __( 'WooCommerce Google Product Feed - Manufacturer Part Number (MPN)', 'woocommerce-exporter' ),
|
63 |
+
'hover' => __( 'WooCommerce Google Product Feed', 'woocommerce-exporter' )
|
64 |
);
|
65 |
$fields[] = array(
|
66 |
'name' => 'gpf_gender',
|
67 |
+
'label' => __( 'WooCommerce Google Product Feed - Gender', 'woocommerce-exporter' ),
|
68 |
+
'hover' => __( 'WooCommerce Google Product Feed', 'woocommerce-exporter' )
|
69 |
);
|
70 |
$fields[] = array(
|
71 |
'name' => 'gpf_agegroup',
|
72 |
+
'label' => __( 'WooCommerce Google Product Feed - Age Group', 'woocommerce-exporter' ),
|
73 |
+
'hover' => __( 'WooCommerce Google Product Feed', 'woocommerce-exporter' )
|
74 |
);
|
75 |
$fields[] = array(
|
76 |
+
'name' => 'gpf_color',
|
77 |
+
'label' => __( 'WooCommerce Google Product Feed - Colour', 'woocommerce-exporter' ),
|
78 |
+
'hover' => __( 'WooCommerce Google Product Feed', 'woocommerce-exporter' )
|
79 |
);
|
80 |
$fields[] = array(
|
81 |
'name' => 'gpf_size',
|
82 |
+
'label' => __( 'WooCommerce Google Product Feed - Size', 'woocommerce-exporter' ),
|
83 |
+
'hover' => __( 'WooCommerce Google Product Feed', 'woocommerce-exporter' )
|
84 |
);
|
85 |
}
|
86 |
|
175 |
'label' => __( 'WordPress SEO - Twitter Image', 'woocommerce-exporter' ),
|
176 |
'hover' => __( 'WordPress SEO', 'woocommerce-exporter' )
|
177 |
);
|
178 |
+
$fields[] = array(
|
179 |
+
'name' => 'wpseo_canonical',
|
180 |
+
'label' => __( 'WordPress SEO - Canonical URL', 'woocommerce-exporter' ),
|
181 |
+
'hover' => __( 'WordPress SEO', 'woocommerce-exporter' )
|
182 |
+
);
|
183 |
}
|
184 |
|
185 |
// Ultimate SEO - http://wordpress.org/plugins/seo-ultimate/
|
242 |
);
|
243 |
}
|
244 |
|
245 |
+
// WooCommerce Germanized Pro - https://www.vendidero.de/woocommerce-germanized
|
246 |
+
if( woo_ce_detect_export_plugin( 'wc_germanized_pro' ) ) {
|
247 |
+
// Check for Product Units
|
248 |
+
if( get_option( 'woocommerce_gzd_display_listings_product_units' ) == 'yes' ) {
|
249 |
+
$fields[] = array(
|
250 |
+
'name' => 'sale_price_label',
|
251 |
+
'label' => __( 'Sale Label', 'woocommerce-germanized' ),
|
252 |
+
'hover' => __( 'WooCommerce Germanized', 'woocommerce-exporter' ),
|
253 |
+
'disabled' => 1
|
254 |
+
);
|
255 |
+
$fields[] = array(
|
256 |
+
'name' => 'sale_price_regular_label',
|
257 |
+
'label' => __( 'Sale Regular Label', 'woocommerce-germanized' ),
|
258 |
+
'hover' => __( 'WooCommerce Germanized', 'woocommerce-exporter' ),
|
259 |
+
'disabled' => 1
|
260 |
+
);
|
261 |
+
$fields[] = array(
|
262 |
+
'name' => 'unit',
|
263 |
+
'label' => __( 'Unit', 'woocommerce-germanized' ),
|
264 |
+
'hover' => __( 'WooCommerce Germanized', 'woocommerce-exporter' ),
|
265 |
+
'disabled' => 1
|
266 |
+
);
|
267 |
+
$fields[] = array(
|
268 |
+
'name' => 'unit_product',
|
269 |
+
'label' => __( 'Product Units', 'woocommerce-germanized' ),
|
270 |
+
'hover' => __( 'WooCommerce Germanized', 'woocommerce-exporter' ),
|
271 |
+
'disabled' => 1
|
272 |
+
);
|
273 |
+
$fields[] = array(
|
274 |
+
'name' => 'unit_base',
|
275 |
+
'label' => __( 'Base Price Units', 'woocommerce-germanized' ),
|
276 |
+
'hover' => __( 'WooCommerce Germanized', 'woocommerce-exporter' ),
|
277 |
+
'disabled' => 1
|
278 |
+
);
|
279 |
+
$fields[] = array(
|
280 |
+
'name' => 'unit_price_auto',
|
281 |
+
'label' => __( 'Calculation', 'woocommerce-germanized' ),
|
282 |
+
'hover' => __( 'WooCommerce Germanized', 'woocommerce-exporter' ),
|
283 |
+
'disabled' => 1
|
284 |
+
);
|
285 |
+
$fields[] = array(
|
286 |
+
'name' => 'unit_price_regular',
|
287 |
+
'label' => __( 'Regular Base Price', 'woocommerce-germanized' ),
|
288 |
+
'hover' => __( 'WooCommerce Germanized', 'woocommerce-exporter' ),
|
289 |
+
'disabled' => 1
|
290 |
+
);
|
291 |
+
$fields[] = array(
|
292 |
+
'name' => 'unit_price_sale',
|
293 |
+
'label' => __( 'Sale Base Price', 'woocommerce-germanized' ),
|
294 |
+
'hover' => __( 'WooCommerce Germanized', 'woocommerce-exporter' ),
|
295 |
+
'disabled' => 1
|
296 |
+
);
|
297 |
+
$fields[] = array(
|
298 |
+
'name' => 'unit_price_regular_display',
|
299 |
+
'label' => __( 'Regular Base Price Display', 'woocommerce-germanized' ),
|
300 |
+
'hover' => __( 'WooCommerce Germanized', 'woocommerce-exporter' ),
|
301 |
+
'disabled' => 1
|
302 |
+
);
|
303 |
+
}
|
304 |
+
}
|
305 |
+
|
306 |
// Cost of Goods - http://www.skyverge.com/product/woocommerce-cost-of-goods-tracking/
|
307 |
if( woo_ce_detect_export_plugin( 'wc_cog' ) ) {
|
308 |
$fields[] = array(
|
309 |
'name' => 'cost_of_goods',
|
310 |
+
'label' => __( 'Cost of Good', 'woocommerce-exporter' ),
|
311 |
'hover' => __( 'Cost of Goods', 'woocommerce-exporter' ),
|
312 |
'disabled' => 1
|
313 |
);
|
413 |
);
|
414 |
}
|
415 |
|
416 |
+
// WC Marketplace - https://wc-marketplace.com/
|
417 |
+
if( woo_ce_detect_export_plugin( 'wc_marketplace' ) ) {
|
418 |
+
$fields[] = array(
|
419 |
+
'name' => 'vendor',
|
420 |
+
'label' => __( 'Vendor' ),
|
421 |
+
'hover' => __( 'WC Marketplace', 'woocommerce-exporter' ),
|
422 |
+
'disabled' => 1
|
423 |
+
);
|
424 |
+
$fields[] = array(
|
425 |
+
'name' => 'vendor_commission',
|
426 |
+
'label' => __( 'Commission' ),
|
427 |
+
'hover' => __( 'WC Marketplace', 'woocommerce-exporter' ),
|
428 |
+
'disabled' => 1
|
429 |
+
);
|
430 |
+
}
|
431 |
+
|
432 |
// WooCommerce Wholesale Pricing - http://ignitewoo.com/woocommerce-extensions-plugins-themes/woocommerce-wholesale-pricing/
|
433 |
if( woo_ce_detect_export_plugin( 'wholesale_pricing' ) ) {
|
434 |
$fields[] = array(
|
451 |
if( !empty( $custom_fields ) ) {
|
452 |
foreach( $custom_fields as $custom_field ) {
|
453 |
$fields[] = array(
|
454 |
+
'name' => sprintf( 'acf_%s', sanitize_key( $custom_field['name'] ) ),
|
455 |
'label' => $custom_field['label'],
|
456 |
'hover' => __( 'Advanced Custom Fields', 'woocommerce-exporter' ),
|
457 |
'disabled' => 1
|
458 |
);
|
459 |
}
|
|
|
460 |
}
|
461 |
+
unset( $custom_fields, $custom_field );
|
462 |
}
|
463 |
|
464 |
// WooCommerce Custom Fields - http://www.rightpress.net/woocommerce-custom-fields
|
500 |
unset( $custom_fields, $custom_field );
|
501 |
}
|
502 |
|
503 |
+
// WC Fields Factory - https://wordpress.org/plugins/wc-fields-factory/
|
504 |
+
if( woo_ce_detect_export_plugin( 'wc_fields_factory' ) ) {
|
505 |
+
// Admin Fields
|
506 |
+
$admin_fields = woo_ce_get_wcff_admin_fields();
|
507 |
+
if( !empty( $admin_fields ) ) {
|
508 |
+
foreach( $admin_fields as $admin_field ) {
|
509 |
+
$fields[] = array(
|
510 |
+
'name' => sprintf( 'wccaf_%s', sanitize_key( $admin_field['name'] ) ),
|
511 |
+
'label' => ucfirst( $admin_field['label'] ),
|
512 |
+
'hover' => sprintf( '%s: %s (%s)', __( 'WC Fields Factory', 'woocommerce-exporter' ), __( 'Admin Field', 'woocommerce-exporter' ), sanitize_key( $admin_field['name'] ) ),
|
513 |
+
'disabled' => 1
|
514 |
+
);
|
515 |
+
}
|
516 |
+
}
|
517 |
+
unset( $admin_fields, $admin_field );
|
518 |
+
}
|
519 |
+
|
520 |
// WooCommerce Subscriptions - http://www.woothemes.com/products/woocommerce-subscriptions/
|
521 |
if( woo_ce_detect_export_plugin( 'subscriptions' ) ) {
|
522 |
$fields[] = array(
|
681 |
);
|
682 |
}
|
683 |
|
684 |
+
// FooEvents for WooCommerce - http://www.woocommerceevents.com/
|
685 |
+
if( woo_ce_detect_export_plugin( 'fooevents' ) ) {
|
686 |
$fields[] = array(
|
687 |
'name' => 'is_event',
|
688 |
'label' => __( 'Is Event', 'woocommerce-exporter' ),
|
689 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
690 |
'disabled' => 1
|
691 |
);
|
692 |
$fields[] = array(
|
693 |
'name' => 'event_date',
|
694 |
'label' => __( 'Event Date', 'woocommerce-exporter' ),
|
695 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
696 |
'disabled' => 1
|
697 |
);
|
698 |
$fields[] = array(
|
699 |
'name' => 'event_start_time',
|
700 |
'label' => __( 'Event Start Time', 'woocommerce-exporter' ),
|
701 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
702 |
'disabled' => 1
|
703 |
);
|
704 |
$fields[] = array(
|
705 |
'name' => 'event_end_time',
|
706 |
'label' => __( 'Event End Time', 'woocommerce-exporter' ),
|
707 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
708 |
'disabled' => 1
|
709 |
);
|
710 |
$fields[] = array(
|
711 |
'name' => 'event_venue',
|
712 |
'label' => __( 'Event Venue', 'woocommerce-exporter' ),
|
713 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
714 |
'disabled' => 1
|
715 |
);
|
716 |
$fields[] = array(
|
717 |
'name' => 'event_gps',
|
718 |
'label' => __( 'Event GPS Coordinates', 'woocommerce-exporter' ),
|
719 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
720 |
'disabled' => 1
|
721 |
);
|
722 |
$fields[] = array(
|
723 |
'name' => 'event_googlemaps',
|
724 |
'label' => __( 'Event Google Maps Coordinates', 'woocommerce-exporter' ),
|
725 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
726 |
'disabled' => 1
|
727 |
);
|
728 |
$fields[] = array(
|
729 |
'name' => 'event_directions',
|
730 |
'label' => __( 'Event Directions', 'woocommerce-exporter' ),
|
731 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
732 |
'disabled' => 1
|
733 |
);
|
734 |
$fields[] = array(
|
735 |
'name' => 'event_phone',
|
736 |
'label' => __( 'Event Phone', 'woocommerce-exporter' ),
|
737 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
738 |
'disabled' => 1
|
739 |
);
|
740 |
$fields[] = array(
|
741 |
'name' => 'event_email',
|
742 |
'label' => __( 'Event E-mail', 'woocommerce-exporter' ),
|
743 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
744 |
'disabled' => 1
|
745 |
);
|
746 |
$fields[] = array(
|
747 |
'name' => 'event_ticket_logo',
|
748 |
'label' => __( 'Event Ticket Logo', 'woocommerce-exporter' ),
|
749 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
750 |
+
'disabled' => 1
|
751 |
+
);
|
752 |
+
$fields[] = array(
|
753 |
+
'name' => 'event_ticket_subject',
|
754 |
+
'label' => __( 'Event Ticket Subject', 'woocommerce-exporter' ),
|
755 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
756 |
'disabled' => 1
|
757 |
);
|
758 |
$fields[] = array(
|
759 |
'name' => 'event_ticket_text',
|
760 |
'label' => __( 'Event Ticket Text', 'woocommerce-exporter' ),
|
761 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
762 |
+
'disabled' => 1
|
763 |
+
);
|
764 |
+
$fields[] = array(
|
765 |
+
'name' => 'event_ticket_thankyou_text',
|
766 |
+
'label' => __( 'Event Ticket Thank You Page Text', 'woocommerce-exporter' ),
|
767 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
768 |
+
'disabled' => 1
|
769 |
+
);
|
770 |
+
$fields[] = array(
|
771 |
+
'name' => 'event_ticket_background_color',
|
772 |
+
'label' => __( 'Event Ticket Background Colour', 'woocommerce-exporter' ),
|
773 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
774 |
+
'disabled' => 1
|
775 |
+
);
|
776 |
+
$fields[] = array(
|
777 |
+
'name' => 'event_ticket_button_color',
|
778 |
+
'label' => __( 'Event Ticket Background Colour', 'woocommerce-exporter' ),
|
779 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
780 |
'disabled' => 1
|
781 |
);
|
782 |
+
$fields[] = array(
|
783 |
+
'name' => 'event_ticket_text_color',
|
784 |
+
'label' => __( 'Event Ticket Background Colour', 'woocommerce-exporter' ),
|
785 |
+
'hover' => __( 'FooEvents for WooCommerce', 'woocommerce-exporter' ),
|
786 |
+
'disabled' => 1
|
787 |
+
);
|
788 |
}
|
789 |
|
790 |
// WooCommerce Uploads - https://wpfortune.com/shop/plugins/woocommerce-uploads/
|
922 |
}
|
923 |
}
|
924 |
unset( $custom_books, $custom_book );
|
925 |
+
|
926 |
$fields[] = array(
|
927 |
'name' => 'book_category',
|
928 |
'label' => __( 'Book Category', 'woocommerce-exporter' ),
|
1073 |
unset( $wholesale_roles, $wholesale_role, $key );
|
1074 |
}
|
1075 |
|
1076 |
+
// WooCommerce Currency Switcher - http://aelia.co/shop/currency-switcher-woocommerce/
|
1077 |
if( woo_ce_detect_export_plugin( 'currency_switcher' ) ) {
|
1078 |
$options = get_option( 'wc_aelia_currency_switcher' );
|
1079 |
$currencies = ( isset( $options['enabled_currencies'] ) ? $options['enabled_currencies'] : false );
|
1085 |
if( $woocommerce_currency == $currency )
|
1086 |
continue;
|
1087 |
|
1088 |
+
// Product Base Currency
|
1089 |
+
|
1090 |
$fields[] = array(
|
1091 |
'name' => sprintf( 'wcae_regular_price_%s', sanitize_key( $currency ) ),
|
1092 |
'label' => sprintf( __( 'Regular Price (%s)', 'woocommerce-exporter' ), $currency ),
|
1364 |
);
|
1365 |
}
|
1366 |
|
1367 |
+
// N-Media WooCommerce Personalized Product Meta Manager - https://najeebmedia.com/wordpress-plugin/woocommerce-personalized-product-option/
|
1368 |
+
// PPOM for WooCommerce - https://wordpress.org/plugins/woocommerce-product-addon/
|
1369 |
+
if(
|
1370 |
+
woo_ce_detect_export_plugin( 'wc_nm_personalizedproduct' ) ||
|
1371 |
+
woo_ce_detect_export_plugin( 'wc_ppom' )
|
1372 |
+
) {
|
1373 |
+
$fields[] = array(
|
1374 |
+
'name' => 'select_personalized_meta',
|
1375 |
+
'label' => __( 'Select Personalized Meta', 'woocommerce-exporter' ),
|
1376 |
+
'hover' => __( 'N-Media WooCommerce Personalized Product Meta Manager', 'woocommerce-exporter' ),
|
1377 |
+
'disabled' => 1
|
1378 |
+
);
|
1379 |
+
}
|
1380 |
+
|
1381 |
// SEO Squirrly - https://wordpress.org/plugins/squirrly-seo/
|
1382 |
if( woo_ce_detect_export_plugin( 'seo_squirrly' ) ) {
|
1383 |
$fields[] = array(
|
1390 |
|
1391 |
// WooCommerce Measurement Price Calculator - http://www.woocommerce.com/products/measurement-price-calculator/
|
1392 |
if( woo_ce_detect_export_plugin( 'wc_measurement_price_calc' ) ) {
|
1393 |
+
|
1394 |
$fields[] = array(
|
1395 |
'name' => 'area',
|
1396 |
'label' => __( 'Area', 'woocommerce-exporter' ),
|
1428 |
'hover' => __( 'WooCommerce Measurement Price Calculator', 'woocommerce-exporter' ),
|
1429 |
'disabled' => 1
|
1430 |
);
|
1431 |
+
|
1432 |
// Area
|
1433 |
$fields[] = array(
|
1434 |
'name' => 'measurement_area_pricing',
|
1448 |
'hover' => __( 'WooCommerce Measurement Price Calculator', 'woocommerce-exporter' ),
|
1449 |
'disabled' => 1
|
1450 |
);
|
1451 |
+
|
1452 |
// Area (LxW)
|
1453 |
$fields[] = array(
|
1454 |
'name' => 'measurement_area_dimension_pricing',
|
1535 |
'hover' => __( 'WooCommerce Measurement Price Calculator', 'woocommerce-exporter' ),
|
1536 |
'disabled' => 1
|
1537 |
);
|
1538 |
+
|
1539 |
// Surface Area
|
1540 |
// Volume
|
1541 |
// Volume (LxWxH)
|
1606 |
$product->wpseo_twitter_title = get_post_meta( $product_id, '_yoast_wpseo_twitter-title', true );
|
1607 |
$product->wpseo_twitter_description = get_post_meta( $product_id, '_yoast_wpseo_twitter-description', true );
|
1608 |
$product->wpseo_twitter_image = get_post_meta( $product_id, '_yoast_wpseo_twitter-image', true );
|
1609 |
+
$product->wpseo_canonical = get_post_meta( $product_id, '_yoast_wpseo_canonical', true );
|
1610 |
}
|
1611 |
|
1612 |
// Ultimate SEO - http://wordpress.org/plugins/seo-ultimate/
|
1645 |
}
|
1646 |
add_filter( 'woo_ce_product_item', 'woo_ce_extend_product_item', 10, 2 );
|
1647 |
|
1648 |
+
// Returns list of Product Add-on columns
|
1649 |
+
function woo_ce_get_product_addons() {
|
1650 |
+
|
1651 |
+
// Product Add-ons - http://www.woothemes.com/
|
1652 |
+
if( woo_ce_detect_export_plugin( 'product_addons' ) ) {
|
1653 |
+
$post_type = 'global_product_addon';
|
1654 |
+
$args = array(
|
1655 |
+
'post_type' => $post_type,
|
1656 |
+
'numberposts' => -1
|
1657 |
+
);
|
1658 |
+
$output = array();
|
1659 |
+
|
1660 |
+
// First grab the Global Product Add-ons
|
1661 |
+
$product_addons = get_posts( $args );
|
1662 |
+
if( !empty( $product_addons ) ) {
|
1663 |
+
foreach( $product_addons as $product_addon ) {
|
1664 |
+
$meta = maybe_unserialize( get_post_meta( $product_addon->ID, '_product_addons', true ) );
|
1665 |
+
if( !empty( $meta ) ) {
|
1666 |
+
$size = count( $meta );
|
1667 |
+
for( $i = 0; $i < $size; $i++ ) {
|
1668 |
+
$output[] = (object)array(
|
1669 |
+
'post_name' => $meta[$i]['name'],
|
1670 |
+
'post_title' => $meta[$i]['name'],
|
1671 |
+
'form_title' => sprintf( __( 'Global Product Add-on: %s', 'woocommerce-exporter' ), $product_addon->post_title )
|
1672 |
+
);
|
1673 |
+
}
|
1674 |
+
unset( $size );
|
1675 |
+
}
|
1676 |
+
unset( $meta );
|
1677 |
+
}
|
1678 |
+
}
|
1679 |
+
|
1680 |
+
if( !empty( $output ) )
|
1681 |
+
return $output;
|
1682 |
+
}
|
1683 |
+
|
1684 |
+
}
|
1685 |
+
|
1686 |
+
// WooCommerce Custom Fields - http://www.rightpress.net/woocommerce-custom-fields
|
1687 |
function woo_ce_get_wccf_product_properties() {
|
1688 |
|
1689 |
$post_type = 'wccf_product_prop';
|
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 |
|
1705 |
$output = '';
|
1725 |
|
1726 |
}
|
1727 |
|
1728 |
+
// Advanced Google Product Feed - http://plugins.leewillis.co.uk/downloads/wp-e-commerce-product-feeds/
|
1729 |
function woo_ce_format_gpf_condition( $condition ) {
|
1730 |
|
1731 |
$output = '';
|
1751 |
|
1752 |
}
|
1753 |
|
1754 |
+
// Advanced Custom Fields - http://www.advancedcustomfields.com
|
1755 |
function woo_ce_get_acf_product_fields() {
|
1756 |
|
1757 |
global $wpdb;
|
1761 |
'post_type' => $post_type,
|
1762 |
'numberposts' => -1
|
1763 |
);
|
1764 |
+
$field_groups = get_posts( $args );
|
1765 |
+
if( !empty( $field_groups ) ) {
|
1766 |
$fields = array();
|
1767 |
$post_types = array( 'product', 'product_variation' );
|
1768 |
foreach( $field_groups as $field_group ) {
|
1769 |
$has_fields = false;
|
1770 |
+
$rules = get_post_meta( $field_group->ID, 'rule' );
|
1771 |
+
if( !empty( $rules ) ) {
|
1772 |
$size = count( $rules );
|
1773 |
for( $i = 0; $i < $size; $i++ ) {
|
1774 |
if( ( $rules[$i]['param'] == 'post_type' ) && ( $rules[$i]['operator'] == '==' ) && ( in_array( $rules[$i]['value'], $post_types ) ) ) {
|
1778 |
}
|
1779 |
}
|
1780 |
unset( $rules );
|
1781 |
+
|
1782 |
+
if( !$has_fields )
|
1783 |
+
continue;
|
1784 |
+
|
1785 |
+
$custom_fields_sql = "SELECT `meta_value` FROM `" . $wpdb->postmeta . "` WHERE `post_id` = " . absint( $field_group->ID ) . " AND `meta_key` LIKE 'field_%'";
|
1786 |
+
if( $custom_fields = $wpdb->get_col( $custom_fields_sql ) ) {
|
1787 |
+
foreach( $custom_fields as $custom_field ) {
|
1788 |
+
$custom_field = maybe_unserialize( $custom_field );
|
1789 |
+
$fields[] = array(
|
1790 |
+
'name' => $custom_field['name'],
|
1791 |
+
'label' => $custom_field['label']
|
1792 |
+
);
|
1793 |
}
|
|
|
1794 |
}
|
1795 |
+
unset( $custom_fields, $custom_field );
|
1796 |
}
|
1797 |
+
|
1798 |
return $fields;
|
1799 |
+
|
1800 |
}
|
1801 |
|
1802 |
}
|
1803 |
|
1804 |
+
// WordPress SEO - http://wordpress.org/plugins/wordpress-seo/
|
1805 |
function woo_ce_format_wpseo_noindex( $noindex = '' ) {
|
1806 |
|
1807 |
$output = $noindex;
|
1831 |
|
1832 |
}
|
1833 |
|
1834 |
+
// WordPress SEO - http://wordpress.org/plugins/wordpress-seo/
|
1835 |
function woo_ce_format_wpseo_follow( $follow = '' ) {
|
1836 |
|
1837 |
$output = $follow;
|
1866 |
|
1867 |
return $output;
|
1868 |
|
1869 |
+
}
|
|
includes/product.php
CHANGED
@@ -119,6 +119,10 @@ function woo_ce_get_product_fields( $format = 'full' ) {
|
|
119 |
'name' => 'sale_price',
|
120 |
'label' => __( 'Sale Price', 'woocommerce-exporter' )
|
121 |
);
|
|
|
|
|
|
|
|
|
122 |
$fields[] = array(
|
123 |
'name' => 'sale_price_dates_from',
|
124 |
'label' => __( 'Sale Price Dates From', 'woocommerce-exporter' )
|
@@ -705,6 +709,7 @@ function woo_ce_get_product_data( $product_id = 0, $args = array() ) {
|
|
705 |
// Check that a valid price has been provided and that wc_format_localized_price() exists
|
706 |
if( isset( $product->sale_price ) && $product->sale_price != '' && function_exists( 'wc_format_localized_price' ) )
|
707 |
$product->sale_price = wc_format_localized_price( $product->sale_price );
|
|
|
708 |
$product->sale_price_dates_from = woo_ce_format_product_sale_price_dates( get_post_meta( $product_id, '_sale_price_dates_from', true ) );
|
709 |
$product->sale_price_dates_to = woo_ce_format_product_sale_price_dates( get_post_meta( $product_id, '_sale_price_dates_to', true ) );
|
710 |
$product->post_date = woo_ce_format_date( $product->post_date );
|
@@ -1125,48 +1130,6 @@ function woo_ce_get_product_assoc_download_files( $product_id = 0, $type = 'url'
|
|
1125 |
|
1126 |
}
|
1127 |
|
1128 |
-
// Returns list of Product Add-on columns
|
1129 |
-
function woo_ce_get_product_addons() {
|
1130 |
-
|
1131 |
-
// Product Add-ons - http://www.woothemes.com/
|
1132 |
-
if( class_exists( 'Product_Addon_Admin' ) || class_exists( 'Product_Addon_Display' ) ) {
|
1133 |
-
$post_type = 'global_product_addon';
|
1134 |
-
$args = array(
|
1135 |
-
'post_type' => $post_type,
|
1136 |
-
'numberposts' => -1
|
1137 |
-
);
|
1138 |
-
$output = array();
|
1139 |
-
|
1140 |
-
// First grab the Global Product Add-ons
|
1141 |
-
if( $product_addons = get_posts( $args ) ) {
|
1142 |
-
foreach( $product_addons as $product_addon ) {
|
1143 |
-
if( $meta = maybe_unserialize( get_post_meta( $product_addon->ID, '_product_addons', true ) ) ) {
|
1144 |
-
$size = count( $meta );
|
1145 |
-
for( $i = 0; $i < $size; $i++ ) {
|
1146 |
-
$output[] = (object)array(
|
1147 |
-
'post_name' => $meta[$i]['name'],
|
1148 |
-
'post_title' => $meta[$i]['name'],
|
1149 |
-
'form_title' => $product_addon->post_title
|
1150 |
-
);
|
1151 |
-
}
|
1152 |
-
}
|
1153 |
-
}
|
1154 |
-
}
|
1155 |
-
}
|
1156 |
-
|
1157 |
-
// Custom Order Items
|
1158 |
-
if( $custom_order_items = woo_ce_get_option( 'custom_order_items', '' ) ) {
|
1159 |
-
foreach( $custom_order_items as $custom_order_item ) {
|
1160 |
-
$output[] = (object)array(
|
1161 |
-
'post_name' => $custom_order_item,
|
1162 |
-
'post_title' => $custom_order_item
|
1163 |
-
);
|
1164 |
-
}
|
1165 |
-
}
|
1166 |
-
return $output;
|
1167 |
-
|
1168 |
-
}
|
1169 |
-
|
1170 |
function woo_ce_format_product_visibility( $product_id = 0, $visibility = '' ) {
|
1171 |
|
1172 |
$output = '';
|
119 |
'name' => 'sale_price',
|
120 |
'label' => __( 'Sale Price', 'woocommerce-exporter' )
|
121 |
);
|
122 |
+
$fields[] = array(
|
123 |
+
'name' => 'net_price',
|
124 |
+
'label' => __( 'Net Price', 'woocommerce-exporter' )
|
125 |
+
);
|
126 |
$fields[] = array(
|
127 |
'name' => 'sale_price_dates_from',
|
128 |
'label' => __( 'Sale Price Dates From', 'woocommerce-exporter' )
|
709 |
// Check that a valid price has been provided and that wc_format_localized_price() exists
|
710 |
if( isset( $product->sale_price ) && $product->sale_price != '' && function_exists( 'wc_format_localized_price' ) )
|
711 |
$product->sale_price = wc_format_localized_price( $product->sale_price );
|
712 |
+
$product->net_price = ( $product->sale_price != '' ? $product->sale_price : $product->price );
|
713 |
$product->sale_price_dates_from = woo_ce_format_product_sale_price_dates( get_post_meta( $product_id, '_sale_price_dates_from', true ) );
|
714 |
$product->sale_price_dates_to = woo_ce_format_product_sale_price_dates( get_post_meta( $product_id, '_sale_price_dates_to', true ) );
|
715 |
$product->post_date = woo_ce_format_date( $product->post_date );
|
1130 |
|
1131 |
}
|
1132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1133 |
function woo_ce_format_product_visibility( $product_id = 0, $visibility = '' ) {
|
1134 |
|
1135 |
$output = '';
|
includes/tag.php
CHANGED
@@ -49,6 +49,10 @@ function woo_ce_get_tag_fields( $format = 'full' ) {
|
|
49 |
'name' => 'term_url',
|
50 |
'label' => __( 'Term URI', 'woocommerce-exporter' )
|
51 |
);
|
|
|
|
|
|
|
|
|
52 |
$fields[] = array(
|
53 |
'name' => 'count',
|
54 |
'label' => __( 'Count', 'woocommerce-exporter' )
|
49 |
'name' => 'term_url',
|
50 |
'label' => __( 'Term URI', 'woocommerce-exporter' )
|
51 |
);
|
52 |
+
$fields[] = array(
|
53 |
+
'name' => 'description',
|
54 |
+
'label' => __( 'Description', 'woocommerce-exporter' )
|
55 |
+
);
|
56 |
$fields[] = array(
|
57 |
'name' => 'count',
|
58 |
'label' => __( 'Count', 'woocommerce-exporter' )
|
readme.txt
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
|
3 |
Contributors: visser, visser.labs
|
4 |
Donate link: https://www.visser.com.au/donations/
|
5 |
-
Tags: woocommerce, export,
|
6 |
Requires at least: 2.9.2
|
7 |
Tested up to: 5.2.2
|
8 |
-
Stable tag: 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.).
|
@@ -16,9 +16,9 @@ Export store details out of WooCommerce into simple formatted files (e.g. CSV, X
|
|
16 |
|
17 |
Screen-loads of filters and options are available to customise each export type, with native export integration of 110+ WooCommerce Plugins.
|
18 |
|
19 |
-
|
20 |
|
21 |
-
This advanced export Plugin maintains compatibility with the latest WooCommerce releases through regular Plugin updates, we also proudly maintain compatibility with legacy releases of WooCommerce.
|
22 |
|
23 |
= WooCommerce export types =
|
24 |
|
@@ -144,18 +144,21 @@ If you have any problems, questions or suggestions please create a topic here on
|
|
144 |
|
145 |
== Screenshots ==
|
146 |
|
147 |
-
1.
|
148 |
-
2.
|
149 |
-
3.
|
150 |
-
4.
|
151 |
-
5. Export a list of WooCommerce Product
|
152 |
-
6.
|
153 |
-
7.
|
154 |
-
8.
|
155 |
-
9. Drag-and-drop export fields to your preferred ordering, sorting is saved between screen refreshes.
|
156 |
|
157 |
== Changelog ==
|
158 |
|
|
|
|
|
|
|
|
|
159 |
= 2.1 =
|
160 |
* Fixed: Order exports failing with date filter
|
161 |
* Added: Scheduled Exports tab
|
2 |
|
3 |
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.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.).
|
16 |
|
17 |
Screen-loads of filters and options are available to customise each export type, with native export integration of 110+ WooCommerce Plugins.
|
18 |
|
19 |
+
Supported since 2012 Store Exporter for WooCommerce is maintained by an active community of store owners and developers providing feature suggestions and feedback.
|
20 |
|
21 |
+
This advanced WooCommerce export Plugin maintains compatibility with the latest WooCommerce releases through regular Plugin updates, we also proudly maintain compatibility with legacy releases of WooCommerce.
|
22 |
|
23 |
= WooCommerce export types =
|
24 |
|
144 |
|
145 |
== Screenshots ==
|
146 |
|
147 |
+
1. Select the data fields to be included in the export, selections are remembered for next export.
|
148 |
+
2. Each dataset (e.g. Products, Orders, etc.) include filter options to filter by date, status, type, customer and more.
|
149 |
+
3. A range of export options can be adjusted to suit different languages and file formatting requirements.
|
150 |
+
4. Export a list of WooCommerce Product Categories into a CSV file.
|
151 |
+
5. Export a list of WooCommerce Product Tags into a CSV file.
|
152 |
+
6. Download archived copies of previous exports
|
153 |
+
7. Use the Field Editor to relabel export fields to your preferred names
|
154 |
+
8. Drag-and-drop export fields to your preferred ordering, sorting is saved between screen refreshes.
|
|
|
155 |
|
156 |
== Changelog ==
|
157 |
|
158 |
+
= 2.2 =
|
159 |
+
* Added: Description to Category export type (thanks @yatgirl)
|
160 |
+
* Added: Net Price to Product export type
|
161 |
+
|
162 |
= 2.1 =
|
163 |
* Fixed: Order exports failing with date filter
|
164 |
* Added: Scheduled Exports tab
|