logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
judy at Web2Market  
#1 Posted : Tuesday, August 30, 2022 8:46:57 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
I've come across weird order count/paging on the manage orders page that I can't figure out. I've tested on a couple of 9.0.6 sites.
Beginning and date and ending date both set 7/20/22 to 7/23/22. It doesn't happen with no ending date
Order status is all
I'm debugging in this method:
public ActionResult ListOrdersPaged(string modelData = "", int orderStatus = 0, string sortExpression = "Id DESC", int page = 1, int pageSize = 20)
{
OrderFilter model = Session["OrderSearchFilter"] as OrderFilter;
if (string.IsNullOrEmpty(modelData))
{
if (model == null)
{
model = new OrderFilter();
}
}
else
{
var serializer = new JavaScriptSerializer();
model = serializer.Deserialize<OrderFilter>(modelData);
UpdateOrderStatusInFilter(model, orderStatus);
}
return _ListOrders(model, orderStatus, page, pageSize, sortExpression);
}

OrderFilter model = Session["OrderSearchFilter"] as OrderFilter; --this shows 7/20-7/23
2022-08-30_9-18-15.png (16kb) downloaded 0 time(s).

modelData has the following
2022-08-30_9-18-34.png (15kb) downloaded 0 time(s).


model = serializer.Deserialize<OrderFilter>(modelData); -model had different date, depending on how many times I have clicked a paging button
2022-08-30_9-19-18.png (14kb) downloaded 0 time(s).

Where are the values in modelData coming from?
Thanks




Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shaharyar  
#2 Posted : Tuesday, August 30, 2022 9:23:34 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Quote:
Where are the values in modelData coming from?


modelData is being passed with paging calls as routeValues.
for bulk update function (i-e UpdateSelectedOrders), we are sending this as form Hidden value

We are using this ViewBag.OrderFilter to get the value in view file.
judy at Web2Market  
#3 Posted : Tuesday, August 30, 2022 10:02:09 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
Do you have a 9.0.6 site you can test on? Put in a date range where you will get a few hundred orders with different order statuses.
I just tested on another 9.0.6 site with no customizations to the manage orders page.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.