From ed796b00b244710327b3b7e0566be40ace94bc1f Mon Sep 17 00:00:00 2001 From: Roberto Guido Date: Sun, 14 Jan 2024 14:57:44 +0100 Subject: [PATCH] fix matrice delle varianti. closes #248 --- code/resources/views/variant/matrix.blade.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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); + + ?>