feat: update product and variant resources to include attribute options and metadata resolution

This commit is contained in:
2026-06-29 14:42:14 -03:00
parent b05a574610
commit a7372f9d08
6 changed files with 26 additions and 14 deletions

View File

@@ -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']);
});
}