diff --git a/code/resources/views/variant/matrix.blade.php b/code/resources/views/variant/matrix.blade.php index 5d762fb1..d88c0f5e 100644 --- a/code/resources/views/variant/matrix.blade.php +++ b/code/resources/views/variant/matrix.blade.php @@ -1,5 +1,15 @@ - sortedVariantCombos ?> + sortedVariantCombos perché ritorna solo le combo + attualmente attive (mentre qui le voglio ovviamente tutte) + */ + $combos = $product->variant_combos->sortBy(function($combo, $key) { + return $combo->values->pluck('value')->join(' '); + }, SORT_NATURAL); + + ?>