Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2019
    Posts
    242
    Plugin Contributions
    0

    Default 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.
    Last edited by njcyx; 31 Mar 2021 at 05:07 PM.

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,669
    Plugin Contributions
    11

    Default 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!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #3
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,669
    Plugin Contributions
    11

    Default 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.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  4. #4
    Join Date
    Apr 2019
    Posts
    242
    Plugin Contributions
    0

    Default Re: Products viewed report: date lost when navigating pagination links

    Quote Originally Posted by carlwhat View Post
    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.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,622
    Plugin Contributions
    123

    Default Re: Products viewed report: date lost when navigating pagination links

    Thanks Carl.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Apr 2019
    Posts
    242
    Plugin Contributions
    0

    Default 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!

 

 

Similar Threads

  1. My Products Viewed Report is Incorrect
    By TamyA in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 6 May 2016, 11:48 AM
  2. v151 Pagination of Products listed in Administration when in category view
    By bobmeetin in forum Customization from the Admin
    Replies: 4
    Last Post: 11 Jan 2013, 08:35 PM
  3. products viewed report
    By fakeDecoy in forum General Questions
    Replies: 13
    Last Post: 19 May 2012, 05:52 PM
  4. Products Viewed report in admin - not showing details?
    By afo in forum General Questions
    Replies: 5
    Last Post: 30 Aug 2008, 06:38 AM
  5. Products Viewed Report not showing all products
    By Dazza33 in forum General Questions
    Replies: 0
    Last Post: 11 Jul 2007, 03:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR