Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions includes/fbproductfeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public function get_product_feed_header_row() {
'additional_image_link,sale_price_effective_date,sale_price,condition,' .
'visibility,gender,color,size,pattern,google_product_category,default_product,'.
'variant,gtin,quantity_to_sell_on_facebook,rich_text_description,internal_label,external_update_time,'.
'external_variant_id'. PHP_EOL;
'external_variant_id, is_woo_all_products_sync'. PHP_EOL ;
}


Expand Down Expand Up @@ -507,6 +507,9 @@ private function prepare_product_for_feed( $woo_product, &$attribute_variants )
);
}

// Setting up Woo All Products sync flag
$is_woo_all_products_sync = $product_data['is_woo_all_products_sync'] || false;

return $product_data['retailer_id'] . ',' .
static::format_string_for_feed( static::get_value_from_product_data( $product_data, 'name' ) ) . ',' .
static::format_string_for_feed( static::get_value_from_product_data( $product_data, 'description' ) ) . ',' .
Expand Down Expand Up @@ -538,7 +541,8 @@ private function prepare_product_for_feed( $woo_product, &$attribute_variants )
static::format_string_for_feed( static::get_value_from_product_data( $product_data, 'rich_text_description' ) ) . ',' .
static::format_internal_labels_for_feed( static::get_value_from_product_data( $product_data, 'internal_label' ) ) . ',' .
static::get_value_from_product_data( $product_data, 'external_update_time' ) . ',' .
static::get_value_from_product_data( $product_data, 'external_variant_id' ) . PHP_EOL;
static::get_value_from_product_data( $product_data, 'external_variant_id' ) . ',' .
static::format_string_for_feed($is_woo_all_products_sync). PHP_EOL ;
}

private static function format_additional_image_url( $product_image_urls ) {
Expand Down