Tell us what you are trying to do? Display woocommerce products and allow the client to manually sort the product order and display that in the view. We're using the initiate scroll and I've set the default ordering to Menu order. This works well down to the point where the infinite scroll loads the next products, at which point the ordering misses out some products and then duplicates some others.
Is there any documentation that you are following? Yes, I read a number of articles asking similar questions but none met these requirements.
Is there a similar example that we can see? yes, certainly. You need to be logged in (I'll attach login) but the category that we're using as an example is hidden link
I've cross referenced it with the manual sorting (when sorting is clicked) in the backend and can see that after 24 products (which is the same number as the infinite scroll setting) the order goes awry.
The problem is that your Archive is using the woocommerce sorting, now given that the woocommerce sorting isn't integrated in Views you will need to use the views frontend sorting option by clicking the sorting controls button and adding your sort parameters. See Screenshot
Adding these sorting controls will maintain your sort order through the infinite scrolling. You will perhaps need to hide the woocommerce sort option using some css.
I've checked again and it seem the issue is still there with the duplicate products but I still advise that you update to the latest versions of our Toolset plugins while I continue to investigate.
So after running some tests, disabling your plugins on the local copy as well as switching your theme to a default one. I found that the issue still remained.
This led me to believe that something was wrong with the archive itself. The next thing I did was to disable your current archive by de-selecting the Product and Product Categories option from the Loop Selection and remade the entire archive in its basic form.
Once I did this the archive stopped displaying with duplicate items. So what you can do now is to do the same on your end.
Remove your current archive from displaying for Product and Product Categories, then create a completely new archive for them.
Please let me know if the same result is reflected on your end.
Many thanks for this. I've created a new archive and the issue looked fixed. I then copied over the code for the original to see if the archive itself was corrupted or if the code was the issue.
Looks like it was the code as I'm still seeing the duplicates so now we know it's that, I'll play around with it and see which part is affecting things.
I spoke too soon. Apologies, but the issue is still arising with a fresh archive and fresh code. I created a simple archive and added the fields but can still se the issue - hidden link
Just to double check, the new archive should 'Display all the items' rather than 'Display the items using a custom search' shouldn't it?