Hello everyone,
I need help to create combinations on my Prestashop 1.7.8.7.
When i generate combinations from B.O.>product>combination, attributes inside each combination are ordered by their unique ID. I want them to be ordered by the position of the attribute_group.
Exemple :
attribute_group "Size" position = 1.
Attribute_group "Color" position = 2.
"S" attribute_id = 2
"red" attribute_id = 1
"green" attribute_id = 3
I generate combinations with Size : S and Color Red and Green. It will output like this :
Size - S, Color - green
Color - red, Size - S
Why the "size" appear 1st on the first example, but 2nd on the second example?
It's because it is ordered by the ID of the combination.
But i want these to be ordered by the POSITION of the attribute_group , like size is ALWAYS position 1, and color ALWAYS position 2.
like this:
size - S, Color - green
size - S, Color - red
Is it possible to edit some controllers to correct that ? Which one ?
Why it isn't the default behavior ?