Forums Forums Search & Filter Pro attribute order terms by

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #266644

    Using the advanced settings, I cant seem to display the attribute terms in the order they show in the woocommerce/product/attribute/term section. Is there a way?

    Trevor
    #266677

    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

Viewing 2 posts - 1 through 2 (of 2 total)