File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ protected function setProductData( $product_id ) {
287
287
$ variation_obj = self ::$ woocommerce ->getProduct ( $ variation_id );
288
288
$ image_id = $ variation_obj ->get_image_id ();
289
289
$ product_variation [] = [
290
- 'Id ' => $ this -> generateUuid () ,
290
+ 'Id ' => function_exists ( ' wp_generate_uuid4 ' ) ? wp_generate_uuid4 () : '' ,
291
291
'ExternalVariantId ' => $ variation_id ,
292
292
'AppId ' => self ::$ settings ->getApiKey (),
293
293
'ExternalProductId ' => $ variation_obj ->get_parent_id (),
@@ -308,7 +308,7 @@ protected function setProductData( $product_id ) {
308
308
}
309
309
}else {
310
310
$ product_variation [] = [
311
- 'Id ' => $ this -> generateUuid () ,
311
+ 'Id ' => function_exists ( ' wp_generate_uuid4 ' ) ? wp_generate_uuid4 () : '' ,
312
312
'ExternalVariantId ' => (int )$ product_id ,
313
313
'AppId ' => self ::$ settings ->getApiKey (),
314
314
'ExternalProductId ' => (int )$ product_id ,
You can’t perform that action at this time.
0 commit comments