From beeb001b6f53768185f44652e981dad308fc8833 Mon Sep 17 00:00:00 2001 From: Cristian Ojog Date: Mon, 24 Mar 2025 12:35:39 +0000 Subject: [PATCH] Replace woo_commerce_retailer_id with external_variant_id --- includes/fbproduct.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/fbproduct.php b/includes/fbproduct.php index f8ab95d8f..12a3b41b5 100644 --- a/includes/fbproduct.php +++ b/includes/fbproduct.php @@ -832,7 +832,7 @@ public function prepare_product( $retailer_id = null, $type_to_prepare_for = sel $product_data[ 'availability' ] = $this->is_in_stock() ? 'in stock' : 'out of stock'; $product_data[ 'visibility' ] = Products::is_product_visible( $this->woo_product ) ? \WC_Facebookcommerce_Integration::FB_SHOP_PRODUCT_VISIBLE : \WC_Facebookcommerce_Integration::FB_SHOP_PRODUCT_HIDDEN; $product_data[ 'retailer_id' ] = $retailer_id; - $product_data[ 'woo_commerce_retailer_id' ] = $this->get_id(); + $product_data[ 'external_variant_id' ] = $this->get_id(); if ( self::PRODUCT_PREP_TYPE_ITEMS_BATCH === $type_to_prepare_for ) { $product_data['title'] = WC_Facebookcommerce_Utils::clean_string( $this->get_title() );