- This topic has 1 reply, 2 voices, and was last updated 5 years, 8 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › attribute order terms by
You would need to use some advanced PHP to do this (this is not something I can help you with beyond the content of this post, sorry).
WooCommerce stores the attributes in an array, named $attributes. Attributes are shown in that order on the edit product page.
So, you would need to fetch that order in your code, and then re-order our field array to match, using this filter:
https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object