feat(variant): refactor selection values to expose options with labels; update related resources and tests for consistency
This commit is contained in:
@@ -46,7 +46,7 @@ class CatalogFeaturedItemResource extends JsonResource
|
||||
'stock_tecnico' => $catalogItem->inventory_policy === InventoryPolicy::Unlimited
|
||||
? null
|
||||
: $variant->inventory->availableStock(),
|
||||
'values' => $variant->selectionValues(),
|
||||
'values' => $variant->selectionOptions(),
|
||||
])
|
||||
->values(),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user