AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
9.0.6 paging on manage orders when there is a start and end date
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
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
9.0.6 paging on manage orders when there is a start and end date
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close