silvershop-core icon indicating copy to clipboard operation
silvershop-core copied to clipboard

Variations not (really) sortable

Open innomedia opened this issue 5 years ago • 1 comments

Product variations are sortable in the backend. But when building the dropdown in the frontend form, sort order is ignored. It's simply missing in the query in the ProductVariationsExtension

innomedia avatar Jul 23 '20 16:07 innomedia

That's because the dropdown itself, does not list the Variations but the AttributeTypes and the corresponding values.

Look here: https://github.com/silvershop/silvershop-core/blob/c21570757a3f38431471ebafd8c72c9f71c69e91/src/Forms/VariationForm.php#L123-L134

So it just does not care about the sort order of the Variations.

MLindenhofer avatar Oct 18 '23 15:10 MLindenhofer