Closed ChrissiePollock closed 2 years ago
For the record:
Ran into this while working on UI tests for the Order Details screen (SingleOrderScreen
).
In wp-admin, the products are in the order in which they were published. However, on the Order Details screen, they are not in this order. I'm not sure how the order is set, but it is stable between visits to the Order Details screen for a particular order.
I investigated this issue, and the solution can be harder than expected.
It turns out that on Android they fetch the result from API, and they do not do any sorting.
Instead, on iOS, we fetch only the missing products for the order, then we use the productResultsController
under OrderDetailsResultsControllers
to fetch the stored products, so we sort them by name
.
To fix the issues, we should continue to use the productResultsController
but sort the items in Core Data. Plus, we should do a refactor in the combineOrderItems
that is used to combine original order items with refunded products to get a tally for the quantity and item total.
Describe the bug Reported issue: Our products are no longer cross order. They were there before which was great for us it allowed us to prepare our shipments quickly unfortunately now it's totally random and therefore enormously complicated our shipment preparations Is it possible that you put them back as before.
They were there before which was great for us it allowed us to prepare our shipments quickly unfortunately now it's totally random and therefore enormously complicated our shipment preparations
The sku 1 is for us the 1 st product to encode and the more we advance in the sku the more recent products are. And since the update the products of our orders are displayed randomly.
Example->
On woocommerce It is neither in alphabetical order nor in chronological order
To Reproduce Testing done:
Publish order in WP Admin, from oldest to newest
Order when purchasing/adding to cart:
Order in iOS:
Order in Android:
Expected behavior
The customer says the products were ordered in the past.
Mobile Environment Please include:
WordPress Environment