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 edc933a commit 04b8d80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/fbproduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class WC_Facebook_Product {
const MAX_TIME = 'T23:59+00:00';
const MIN_TIME = 'T00:00+00:00';

static $use_checkout_url = array(
static $use_checkout_url = array(
'simple' => 1,
'variable' => 1,
'variation' => 1,
Expand Down
1 change: 1 addition & 0 deletions tests/Unit/WCFacebookCommerceIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ public function test_on_product_save_existing_simple_product_sync_enabled_update
$this->assertEquals(true, $updated_product_data['custom_fields']['has_fb_image']);

// Verify the actual values are still stored in meta
$this->assertEquals( 'Facebook product description.', get_post_meta( $facebook_product_to_update->get_id(), WC_Facebook_Product::FB_PRODUCT_DESCRIPTION, true ) );
$this->assertEquals( '199', get_post_meta( $facebook_product_to_update->get_id(), WC_Facebook_Product::FB_PRODUCT_PRICE, true ) );
$this->assertEquals( 'http://example.orgFacebook product image.', get_post_meta( $facebook_product_to_update->get_id(), WC_Facebook_Product::FB_PRODUCT_IMAGE, true ) );
}
Expand Down

0 comments on commit 04b8d80

Please sign in to comment.