Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2012
    Posts
    45
    Plugin Contributions
    0

    Default category_product_listing issue

    I've found some goofy stuff in v1.5.8's category_product_listing page. I'm patched to 1.5.8a.

    Category/Product Display Order is working in the category view. It is not working in the product view, so I suspect a flag isn't being set somewhere or there's some set of logic I'm not seeing in my glance between tasks.

    Before I flail about and cast myself into the pit of sorrows, I decided to ask the group. Known issue - or new issue - or case of not reading the manual closely?

    Thanks!

    --Jeremiah

  2. #2
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,240
    Plugin Contributions
    1

    Default Re: category_product_listing issue

    Works fine for me in 1.5.8a

    All I can think of is to check for error logs and perhaps for any console errors in browser's dev tools.
    Simon

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,501
    Plugin Contributions
    88

    Default Re: category_product_listing issue

    Quote Originally Posted by jrcook416 View Post
    I've found some goofy stuff in v1.5.8's category_product_listing page. I'm patched to 1.5.8a.

    Category/Product Display Order is working in the category view. It is not working in the product view, so I suspect a flag isn't being set somewhere or there's some set of logic I'm not seeing in my glance between tasks.

    Before I flail about and cast myself into the pit of sorrows, I decided to ask the group. Known issue - or new issue - or case of not reading the manual closely?

    Thanks!

    --Jeremiah
    "It is not working" covers a lot of ground. What specifically is "not working"?

    It would also help if you would identify any plugins/add-ons that are in use, since they might be contributing to the "not working".

  4. #4
    Join Date
    Jul 2012
    Posts
    45
    Plugin Contributions
    0

    Default Re: category_product_listing issue

    Sorry - I was in the middle of about three things at once:

    In both the category and product view, you have the dropdown select box where you change the sort order of the elements. When I change the value in the Categories/Product Display Order box when viewing all of the categories, the dropdown works correctly and the reloaded page shows the proper display order.

    When I go into a category and look at the product listing, the dropdown select box changes and shows the proper sort order list for all of the products. When I select an element to sort by and change the value in the Display Order box, the page reloads and goes back to the category view. It does this for all sort orders regardless of which sort order I'm selecting.

    I took a glance at the code, but I didn't know if anyone had some quick suggestions before I budgeted out some time to dig deeper.
    1.5.8a with Bootstrap, EO, Super Orders. I have a forked copy of the GitHub repo with my individual build that I keep in sync with the current branch if that helps.

    --Jeremiah
    Last edited by jrcook416; 25 Jul 2023 at 04:37 PM.

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,694
    Plugin Contributions
    9

    Default Re: category_product_listing issue

    Quote Originally Posted by jrcook416 View Post
    Sorry - I was in the middle of about three things at once:

    In both the category and product view, you have the dropdown select box where you change the sort order of the elements. When I change the value in the Categories/Product Display Order box when viewing all of the categories, the dropdown works correctly and the reloaded page shows the proper display order.

    When I go into a category and look at the product listing, the dropdown select box changes and shows the proper sort order list for all of the products. When I select an element to sort by and change the value in the Display Order box, the page reloads and goes back to the category view. It does this for all sort orders regardless of which sort order I'm selecting.

    I took a glance at the code, but I didn't know if anyone had some quick suggestions before I budgeted out some time to dig deeper.
    1.5.8a with Bootstrap, EO, Super Orders. I have a forked copy of the GitHub repo with my individual build that I keep in sync with the current branch if that helps.

    --Jeremiah
    just to confirm, we are on the admin side?

    if so, i can confirm that the latest v158 codeset works fine; ie it is not demonstrating the behavior you are describing.

    i have a feeling it is the super orders integration which is messing you up. which is just a wild guess...

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    Jul 2012
    Posts
    45
    Plugin Contributions
    0

    Default Re: category_product_listing issue

    Quote Originally Posted by carlwhat View Post
    just to confirm, we are on the admin side?

    if so, i can confirm that the latest v158 codeset works fine; ie it is not demonstrating the behavior you are describing.

    i have a feeling it is the super orders integration which is messing you up. which is just a wild guess...

    best.
    This is a recent development.

    I've been testing 1.5.8 on PHP 8 since initial release WITH SO, EO, and Bootstrap, additionally, I don't think that either EO or SO code touches this particular page.

    Thanks for the thought, though.

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,694
    Plugin Contributions
    9

    Default Re: category_product_listing issue

    Quote Originally Posted by jrcook416 View Post
    This is a recent development.

    I've been testing 1.5.8 on PHP 8 since initial release WITH SO, EO, and Bootstrap, additionally, I don't think that either EO or SO code touches this particular page.

    Thanks for the thought, though.
    this page is now definitely not working properly. i'm trying to see when it got screwed up.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  8. #8
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,694
    Plugin Contributions
    9

    Default Re: category_product_listing issue

    Quote Originally Posted by jrcook416 View Post
    When I go into a category and look at the product listing, the dropdown select box changes and shows the proper sort order list for all of the products. When I select an element to sort by and change the value in the Display Order box, the page reloads and goes back to the category view. It does this for all sort orders regardless of which sort order I'm selecting.
    i can not reproduce this error. when i go into a product listing it sorts completely correctly.

    when i go into a category view, the sort does not work.

    that is a problem.

    i think the fix is as such. look at these 2 lines:

    https://github.com/zencart/zencart/b...isting.php#L36
    https://github.com/zencart/zencart/b...isting.php#L42

    and change each one as such:

    PHP Code:

    if (!empty($_GET['cID'])) {

    if (!empty(
    $_GET['pID'])) { 
    please let us know if that fixes the problem.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  9. #9
    Join Date
    Jul 2012
    Posts
    45
    Plugin Contributions
    0

    Default Re: category_product_listing issue

    Good morning!

    I adjusted lines 36 and 42 accordingly in my development environment with no change in the behavior.

    If I get a chance between all of the other projects I have going, I'll see if I can look deeper into the diffs and see what I can see. But thank you for taking a second look!

    --Jeremiah

  10. #10
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,591
    Plugin Contributions
    30

    Default Re: category_product_listing issue

    I applied the first fix and that worked for me. The issue/bug should only occur in the subcategory immediately below the top category listing:
    https://github.com/zencart/zencart/pull/5899
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v158 category_product_listing issues
    By jrcook416 in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 17 Feb 2023, 07:52 PM
  2. v150 category_product_listing.php lost, where to get it
    By boomup in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 24 Sep 2012, 06:06 AM
  3. Replies: 3
    Last Post: 28 Apr 2010, 12:27 AM
  4. Download for category_product_listing.php
    By shoniqua in forum General Questions
    Replies: 4
    Last Post: 10 Nov 2008, 08:22 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