summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php')
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php101
1 files changed, 84 insertions, 17 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php b/plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php
index 9604a518..6a048c38 100644
--- a/plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php
+++ b/plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php
@@ -194,43 +194,110 @@ class Jetpack_Sync_Module_WooCommerce extends Jetpack_Sync_Module {
private static $wc_post_meta_whitelist = array(
//woocommerce products
- '_stock_status',
+ // https://github.com/woocommerce/woocommerce/blob/8ed6e7436ff87c2153ed30edd83c1ab8abbdd3e9/includes/data-stores/class-wc-product-data-store-cpt.php#L21
'_visibility',
- 'total_sales',
- '_downloadable',
- '_virtual',
+ '_sku',
+ '_price',
'_regular_price',
'_sale_price',
+ '_sale_price_dates_from',
+ '_sale_price_dates_to',
+ 'total_sales',
'_tax_status',
'_tax_class',
- '_featured',
- '_price',
- '_stock',
- '_backorders',
'_manage_stock',
+ '_backorders',
+ '_sold_individually',
+ '_weight',
+ '_length',
+ '_width',
+ '_height',
+ '_upsell_ids',
+ '_crosssell_ids',
+ '_purchase_note',
+ '_default_attributes',
+ '_product_attributes',
+ '_virtual',
+ '_downloadable',
+ '_download_limit',
+ '_download_expiry',
+ '_featured',
+ '_downloadable_files',
+ '_wc_rating_count',
+ '_wc_average_rating',
+ '_wc_review_count',
+ '_variation_description',
+ '_thumbnail_id',
+ '_file_paths',
+ '_product_image_gallery',
+ '_product_version',
+ '_wp_old_slug',
//woocommerce orders
+ // https://github.com/woocommerce/woocommerce/blob/8ed6e7436ff87c2153ed30edd83c1ab8abbdd3e9/includes/data-stores/class-wc-order-data-store-cpt.php#L27
+ '_customer_user',
+ '_order_key',
'_order_currency',
- '_prices_include_tax',
- '_created_via',
- '_billing_country',
+ '_billing_first_name',
+ '_billing_last_name',
+ '_billing_company',
+ '_billing_address_1',
+ '_billing_address_2',
'_billing_city',
'_billing_state',
'_billing_postcode',
- '_shipping_country',
+ '_billing_country',
+ '_billing_email',
+ '_billing_phone',
+ '_shipping_first_name',
+ '_shipping_last_name',
+ '_shipping_company',
+ '_shipping_address_1',
+ '_shipping_address_2',
'_shipping_city',
'_shipping_state',
'_shipping_postcode',
- '_payment_method',
- '_payment_method_title',
- '_order_shipping',
+ '_shipping_country',
+ '_completed_date',
+ '_paid_date',
'_cart_discount',
'_cart_discount_tax',
- '_order_tax',
+ '_order_shipping',
'_order_shipping_tax',
+ '_order_tax',
'_order_total',
- '_download_permissions_granted',
+ '_payment_method',
+ '_payment_method_title',
+ '_transaction_id',
+ '_customer_ip_address',
+ '_customer_user_agent',
+ '_created_via',
+ '_order_version',
+ '_prices_include_tax',
+ '_date_completed',
+ '_date_paid',
+ '_payment_tokens',
+ '_billing_address_index',
+ '_shipping_address_index',
'_recorded_sales',
+ '_recorded_coupon_usage_counts',
+ // https://github.com/woocommerce/woocommerce/blob/8ed6e7436ff87c2153ed30edd83c1ab8abbdd3e9/includes/data-stores/class-wc-order-data-store-cpt.php#L539
+ '_download_permissions_granted',
+ // https://github.com/woocommerce/woocommerce/blob/8ed6e7436ff87c2153ed30edd83c1ab8abbdd3e9/includes/data-stores/class-wc-order-data-store-cpt.php#L594
'_order_stock_reduced',
+
+ //woocommerce order refunds
+ // https://github.com/woocommerce/woocommerce/blob/b8a2815ae546c836467008739e7ff5150cb08e93/includes/data-stores/class-wc-order-refund-data-store-cpt.php#L20
+ '_order_currency',
+ '_refund_amount',
+ '_refunded_by',
+ '_refund_reason',
+ '_order_shipping',
+ '_order_shipping_tax',
+ '_order_tax',
+ '_order_total',
+ '_order_version',
+ '_prices_include_tax',
+ '_payment_tokens',
);
}