Products viewed report: date lost when navigating pagination links
zc 157c, php7.2 & 7.4
For example, today is 3/31/2021. When I open "products viewed' section, it will show start date of 03/01/2021 and end date of 3/31/2021. The data displayed below seems correct. But if I change the start date to a different number, like 03/15/2021, I notice the data in page 1 will be changed, which is correct. If I go to page 2, the data will be changed back to 03/01/2021 to 3/31/2021. The start date showing on the top will be changed back 03/01/2021 as well. If I go to page 1 then, the data will be changed back to the default date range (03/01/2021 to 3/31/2021).
So in other word, for a specific date range, I can only see the viewed report in page 1. After page 1, I can only see the viewed report under the default selected date range.
I noticed this issue in 157 and it is still remains in 157c.
Re: Products viewed report: date lost when navigating pagination links
i hate dates.
i have confirmed this error. not an easy one to fix right now.
it seems we are losing the post vars when we hit the paginator, as it is doing a get request. very possible to fix that....
but, the split page results is coming up with a different result set than the raw sql.
not sure any of that makes sens to you, but a definite bug, that will require a bit of work to resolve.
thanks for pointing it out!
Re: Products viewed report: date lost when navigating pagination links
i do not want to leave you hanging. as you can see, a new issue has been opened for this bug:
https://github.com/zencart/zencart/issues/4268
as i previously stated, the pagination results requires a bunch of work/thought.
while i spent some time in preserving the dates posted from page to page, it makes little sense to post that code as the pagination function offsets would cause you to lose data.
best.
Re: Products viewed report: date lost when navigating pagination links
Quote:
Originally Posted by
carlwhat
i do not want to leave you hanging. as you can see, a new issue has been opened for this bug:
https://github.com/zencart/zencart/issues/4268
as i previously stated, the pagination results requires a bunch of work/thought.
while i spent some time in preserving the dates posted from page to page, it makes little sense to post that code as the pagination function offsets would cause you to lose data.
best.
Thanks for your help and appreciated.
Re: Products viewed report: date lost when navigating pagination links
Re: Products viewed report: date lost when navigating pagination links
Hi. I just tested zc1.5.8 and the bug mentioned in this thread was fixed.
Thanks for all your help!