Results 1 to 10 of 147

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Set number of products displayed per page (support thread)

    Quote Originally Posted by swguy View Post
    I will revert includes/modules/YOUR_TEMPLATE_FOLDER/product_listing.php (based on the ~ Column Layout Grid for Product Listing copy) to see if the problem goes away.

    But you missed what I said about includes/templates/YOUR_TEMPLATE_FOLDER/templates/tpl_modules_product_listing.php~. This is broken.
    You are correct sir,

    includes/templates/YOUR_TEMPLATE_FOLDER/templates/tpl_modules_product_listing.php~ is broken.

    Copy/Paste Error from demo site

    find both instances of:

    PHP Code:
    <!-- (BOF - 1.3) Set number of products displayed per page (24) -->
    <?php ?>
    <!-- (EOF - 1.3) Set number of products displayed per page (24) --><br class="clearBoth" />
    and change to:
    PHP Code:
    <!-- (EOF - 1.3) Set number of products displayed per page (24) -->
    <?php }
      }
     
    ?>
    <!-- (EOF - 1.3) Set number of products displayed per page (24) --><br class="clearBoth" />
    I will update the example file.

    Thanks for pointing this out Scott
    Last edited by rbarbour; 24 Apr 2014 at 05:58 PM.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Set number of products displayed per page (support thread)

    And sure enough, that fixed my display issue. So that was the root cause of the problem.

    Thanks for the quick diagnosis! I will edit out my suggested fix which was wrong.
    That Software Guy. My Store: Zen Cart Support
    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.

  3. #3
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Set number of products displayed per page (support thread)

    Quote Originally Posted by swguy View Post
    And sure enough, that fixed my display issue. So that was the root cause of the problem.

    Thanks for the quick diagnosis! I will edit out my suggested fix which was wrong.
    Quote Originally Posted by swguy View Post
    I suspect the intention was to add a closing brace on line 50 and on line 85.
    Only wrong depending on the text editor and line count, I think you had it figured out way before I did.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Set number of products displayed per page (support thread)

    Another thing I noticed was that when the "Items per page" selection was made into a dropdown, it seemed to clobber the next/previous links. I think this might be reproduceable on your test site if you set PRODUCT_LISTING_DISPLAY_OPTION to true and look at this page:

    http://zcadditions.com/24/index.php?...&keyword=price
    That Software Guy. My Store: Zen Cart Support
    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.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Set number of products displayed per page (support thread)

    Also, the last call to draw_max_ppp in tpl_modules_product_listing.php is not wrapped in a select call as previous ones are. Suspect this is a bug.
    That Software Guy. My Store: Zen Cart Support
    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
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Set number of products displayed per page (support thread)

    Quote Originally Posted by swguy View Post
    Another thing I noticed was that when the "Items per page" selection was made into a dropdown, it seemed to clobber the next/previous links. I think this might be reproduceable on your test site if you set PRODUCT_LISTING_DISPLAY_OPTION to true and look at this page:

    http://zcadditions.com/24/index.php?...&keyword=price
    Not sure what you mean by clobber - may have to do with below reply


    Quote Originally Posted by swguy View Post
    Also, the last call to draw_max_ppp in tpl_modules_product_listing.php is not wrapped in a select call as previous ones are. Suspect this is a bug.
    I made an additional copy/paste error, my demo has altered code for the purpose of showing both links and drop-down and on the second section for the bottom I did not change the DEMO to actual ADMIN CONFIG

    find:
    <?php if (PRODUCT_LISTING_DISPLAY_OPTION_DEMO == 'true') { ?>

    change to:
    <?php if (PRODUCT_LISTING_DISPLAY_OPTION == 'true') { ?>

  7. #7
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Set number of products displayed per page (support thread)

    Quote Originally Posted by swguy View Post
    Also, the last call to draw_max_ppp in tpl_modules_product_listing.php is not wrapped in a select call as previous ones are. Suspect this is a bug.
    Also

    1st call to draw_max_ppp is for top drop-down
    2nd call to draw_max_ppp is for top links
    3rd call to draw_max_ppp is for bottom drop-down
    4th/last call to draw_max_ppp is for bottom links

    2nd and 4th/last should not be wrapped in a select call for they are links.

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Set number of products displayed per page (support thread)

    When I said "clobber" I meant "the next/prev links do not appear."
    That Software Guy. My Store: Zen Cart Support
    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.

 

 

Similar Threads

  1. v151 Option to select number of products displayed per page
    By DeeL in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 6 Mar 2013, 03:09 AM
  2. v151 Error after trying to install Set Number of products displayed
    By DeeL in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 8 Feb 2013, 07:08 AM
  3. Changing number of products displayed per category
    By dpet102 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Jun 2009, 06:45 PM
  4. where to set number of products per page?
    By bronwen in forum Basic Configuration
    Replies: 1
    Last Post: 25 Jul 2007, 11:15 PM
  5. Allow user to set "Number of Products Per Page"?
    By yellow1912 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Apr 2007, 10:59 PM

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