Sometimes my Collections get unchecked in WixStores, and I have to re-add them. When I do this, the order gets mixed up. I would really like to figure out some code to make sure when the page loads it is in the right order.
Originally I read that this is not possible, unless its a repeater linked to a database, but that just seems like a lot of work to get it to look exactly like the format of the Store. So there must be a way to code it. I looked again, recently, and on brief reading it seems now that WixStores is now integrated. I could be wrong.
These are the pages I have been to and have had no luck,
- https://support.wix.com/en/article/velo-wix-stores-products-collection-fields
- https://www.wix.com/velo/forum/coding-with-velo/sorting-filter-for-my-wix-store
- https://www.wix.com/velo/forum/coding-with-velo/default-sort-order-of-wix-store
- https://www.wix.com/velo/forum/coding-with-velo/alphabetical-database-list-not-alphabetical-on-site
I know a bit of code, but not much. Experience old HTML. LOL :P. I am doing this site pro-bono to help out a store desperately in need of sales during Lock Down because of Covid. I am trying to better it.
This is what I have so far, which I know is not right and is probably just a mish-mash of code.
wixData . query ( “Stores/Collections” )
. find ()
. then ( ( results ) => {
// handle the results
. ascending ( “name” )
} );
Thanks for all help going forward.