feat: update product and variant resources to include attribute options and metadata resolution
This commit is contained in:
@@ -112,7 +112,7 @@ class ProductService
|
||||
$this->syncVariantImages($variant, $images);
|
||||
}
|
||||
|
||||
return $variant->load(['product', 'definitions.attribute', 'attachments']);
|
||||
return $variant->load(['product', 'definitions.attribute.options', 'attachments']);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ class ProductService
|
||||
$this->syncVariantImages($updatedVariant, $images);
|
||||
}
|
||||
|
||||
return $updatedVariant->load(['product', 'definitions.attribute', 'attachments']);
|
||||
return $updatedVariant->load(['product', 'definitions.attribute.options', 'attachments']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user