Hello,
How do I change the default sort order of a Wix store from date added to descending alphabetically?
Thank you for your time.
Hello,
How do I change the default sort order of a Wix store from date added to descending alphabetically?
Thank you for your time.
Have you had a look at the Wix Stores own Support pages to see if it is already mentioned there?
https://support.wix.com/en/wix-stores/setting-up-your-store
For the sorting order this might be a default option that Wix won’t let you change the order and just the selected choices only.
https://support.wix.com/en/article/adding-sort-and-filter-options-to-a-wix-stores-product-gallery
Like in this request here, there is only a default way currently.
https://support.wix.com/en/article/request-reordering-filtered-options-in-wix-stores
Also, you might be better suited asking Wix Support about it.
https://support.wix.com/en/article/contacting-wix-support
Thank you for your reply. I was under the impression that Corvid and Wix went hand in hand. Am I wrong:
Anyway, I have dug through all the Wix support documentation I can find and used my Google-fu as best I could and could not find a simple way to adjust the default sort order.
They do have a manual way to do so but when you have several hundred products that becomes…awkward, at best. Also, if I did go through and manually sort them, any new products added would automatically be dropped at the start of the list.
I’ll send Wix support a message and see what they say. Meanwhile, if you think of anything else that may help, I would certainly appreciate your input.
Just had a quick search of the forum and found this old post.
https://www.wix.com/corvid/forum/community-discussion/sorting-products-by-datecreated-newest
Now people on that page who replied about not being able to use it with the Wix Stores Products Collection. https://support.wix.com/en/article/corvid-wix-stores-product-collection-fields
You will notice that Andreas talks about the ‘_updatedDate’ field which has an underscore at the start of it.
Now this I am taking it as meaning the hidden field in his dataset that is called Last updated and needs to be called by using _updateDate.
See here for more info in System fields section.
https://support.wix.com/en/article/about-your-database-collection-fields#system-fields
System fields
Every database collection contains default fields such as ID and date created. System fields cannot be edited and are hidden by default.
So you can try using this piece of code and seeing if it works for yourself and then if it does, try changing the option to field that you need sorting alphabetically.
Note:
This will only work with a created dataset by yourself and not a dataset that gets automatically added through an Wix app.
So unfortunately this won’t work with the Wix Stores Products Collection, although you could see if you could possibly choose one of the the existing fields that can be filtered and use that instead.
You can try with the Name field seeing as you want to sort it alphabetically.
https://support.wix.com/en/article/corvid-wix-stores-product-collection-fields#name-name
Description : The name of the product.
Type : Text
Can connect to data : Yes
Can use in dynamic page URL : No
Can be sorted : Yes
Can be filtered : eq, ne, hasSome, contains, startsWith
Read-only : Yes
Hope this helps you.