Sort order of attributes
-
Hi!
We are having some troubles with the sort order of attributes.
If I view the product in wp-admin I see that art.nr 22150 has color “Weed”, 22151 has “Silt” and 22152 has “Gravel”.I did some debugging and I see that the attributes are returned order alphabetically which isn’t correct.
[artikelnummer] => WC_Product_Attribute Object
(
[data:protected] => Array
(
[id] => 0
[name] => Artikelnummer
[options] => Array
(
[0] => 22150
[1] => 22151
[2] => 22152
)[position] => 0
[visible] => 1
[variation] => 1
))
[kleur] => WC_Product_Attribute Object
(
[data:protected] => Array
(
[id] => 0
[name] => Kleur
[options] => Array
(
[0] => Gravel
[1] => Silt
[2] => Weed
)[position] => 3
[visible] => 1
[variation] => 1
))
The page I need help with: [log in to see the link]
- The topic ‘Sort order of attributes’ is closed to new replies.