Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get All Orders Sometimes Does Not Include the First Or Last Order of A List #796

Open
Secdv opened this issue Feb 3, 2025 · 0 comments
Open

Comments

@Secdv
Copy link

Secdv commented Feb 3, 2025

 // Fetch all orders
Dictionary<string, string> parameters = new Dictionary<string, string>
{                 
    { "status", "processing" }
};

List<Order> orders = await wc.Order.GetAll(parameters);

I have noticed that when I call the GetAll() function, it excludes the latest order or even the first order sometimes.

Example:

Order 1 | Processing
Order 2 | Processing
Order 3 | Processing
Order 4 | Processing

The function returns Order 1, Order 2, and Order 3, excluding order 4.

Also vice versa, sometimes it returns Order 2, and Order 3, and Order 4, excluding order 1.

Have anyone else experienced this issue? Is there a way to prevent this from happening? I also noticed when I added the parameter "order", "asc", that was causing issue with excluding the last order as well.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant