Tell us what you are trying to do?
We have a view that has filters allowing the filtering of results by woocommerce attributes. Having some ordering of attributes issues and wanted to see how the plugin query for the filter attributes is written. Looking through the plugin files I can't find it. Can you help direct me to the file that handles the output of the views filter queries?
Is there any documentation that you are following? No
Yes some of our attributes have decimals in them. We have the attributes in Woocommerce set to "Custom Ordering" so when configuring the terms we can arrange them in any order needed and not depend on date,name,ID, ect. The problem is that when creating the view filter the output on the front end does not retain that custom ordering even if we set the sort setting on the filter to "none". I am trying to read through the plugin files to see where A.) the options for sorting (Name, ID, Count, Slug, Group, None) are defined/set and B.) Where that setting is being added to the query args. Wondering if I can create a function/filter to add in the option to order by meta_value_num and if selected add the args to the query/get_terms.
This will allow you to modify the SQL query to change the ORDER BY clauses to order by ‘name+0’ instead of ‘name’, which will order as numeric not string.
Unfortunately this is not something that we here can assist with as this would be out of the scope of our Support forum.