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