Skip to content

Commit

Permalink
Add rich text description to woo product sync to meta
Browse files Browse the repository at this point in the history
  • Loading branch information
David Evbodaghe committed Feb 5, 2025
1 parent 426371c commit edc933a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions includes/fbproduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,6 @@ public function prepare_product( $retailer_id = null, $type_to_prepare_for = sel

if ( self::PRODUCT_PREP_TYPE_ITEMS_BATCH === $type_to_prepare_for ) {
$product_data = array(
array(
'title' => WC_Facebookcommerce_Utils::clean_string( $this->get_title() ),
'description' => $this->get_fb_description(),
'rich_text_description' => $this->get_rich_text_description(),
Expand All @@ -757,7 +756,6 @@ public function prepare_product( $retailer_id = null, $type_to_prepare_for = sel
'availability' => $this->is_in_stock() ? 'in stock' : 'out of stock',
'visibility' => Products::is_product_visible( $this->woo_product ) ? \WC_Facebookcommerce_Integration::FB_SHOP_PRODUCT_VISIBLE : \WC_Facebookcommerce_Integration::FB_SHOP_PRODUCT_HIDDEN,
'custom_fields' => $custom_fields,
),
);
$product_data = $this->add_sale_price( $product_data, true );
$gpc_field_name = 'google_product_category';
Expand All @@ -766,7 +764,6 @@ public function prepare_product( $retailer_id = null, $type_to_prepare_for = sel
}
} else {
$product_data = array(
array(
'name' => WC_Facebookcommerce_Utils::clean_string( $this->get_title() ),
'description' => $this->get_fb_description(),
'image_url' => $image_urls[0],
Expand All @@ -792,7 +789,6 @@ public function prepare_product( $retailer_id = null, $type_to_prepare_for = sel
'availability' => $this->is_in_stock() ? 'in stock' : 'out of stock',
'visibility' => Products::is_product_visible( $this->woo_product ) ? \WC_Facebookcommerce_Integration::FB_SHOP_PRODUCT_VISIBLE : \WC_Facebookcommerce_Integration::FB_SHOP_PRODUCT_HIDDEN,
'custom_fields' => $custom_fields
),
);

if ( self::PRODUCT_PREP_TYPE_NORMAL !== $type_to_prepare_for && ! empty( $video_urls ) ) {
Expand Down

0 comments on commit edc933a

Please sign in to comment.