Page 12 of 15 FirstFirst ... 21011121314 ... LastLast
Results 111 to 120 of 147
  1. #111
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

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

    Quote Originally Posted by devyani View Post
    any inputs ?
    This is happening to me as well, pretty sure it has to do with my local comp security tho.

    On another note:

    I have the newest version of this plugin 1.3 complete and will post a download link by days end as well as submit it.

    1.) It now utilizes the init_system for:

    - less merging into the product_listing.php file
    - to ease ZC upgrades
    - to carry $_SESSION['product_listing_max_display'] from 1 category to the next remembering # of products to display

    2.) I added an "active" class for selected links (post 98 & 104)
    3.) Re-coded for HTML Validation
    4.) Includes the product_listing.php file for:

    - Flexible Product Listing
    - Column Layout Grid for Product Listing
    - SNAF

    Only the $max_results code needs merging now! (post 108)

    5.) Includes the stock tpl_modules_product_listing.php file to ease merging process.

    6.) Added admin configuration to display link/drop-down at below product listings

    A DEMO can be seen here!

    Demo defaults to show links but I coded category 22 (Big Linked) to display drop-down.
    Last edited by rbarbour; 13 Mar 2014 at 12:27 AM.
    Website - Github. Like the ZCA Bootstrap 4 Template? Donations Welcome. Bootstrap Plugins?

  2. #112
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

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

    Version 1.3 has been submitted!

    You can download directly from here.
    Website - Github. Like the ZCA Bootstrap 4 Template? Donations Welcome. Bootstrap Plugins?

  3. #113
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

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

    Version: 1.3 is now available!
    Website - Github. Like the ZCA Bootstrap 4 Template? Donations Welcome. Bootstrap Plugins?

  4. #114
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

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

    There is a bug in includes/templates/YOUR_TEMPLATE_FOLDER/templates/tpl_modules_product_listing.php~

    $ php -l tpl_modules_product_listing.php~
    PHP Parse error: syntax error, unexpected $end in tpl_modules_product_listing.php~ on line 104

    I fixed this issue but probably incorrectly.

    But even so the screen looks wonky. I set the products per page to 6 - first row has 2, second row 1, third row 3. I am using Column Layout Grid.

    @PMrbarbour, would you please double check your work?
    Last edited by swguy; 25 Apr 2014 at 12:54 AM.
    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.

  5. #115
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

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

    Quote Originally Posted by swguy View Post
    There is a bug in includes/templates/YOUR_TEMPLATE_FOLDER/templates/tpl_modules_product_listing.php~

    $ php -l tpl_modules_product_listing.php~
    PHP Parse error: syntax error, unexpected $end in tpl_modules_product_listing.php~ on line 104

    I suspect the intention was to add a closing brace on line 50 and on line 85.

    But even so the screen looks wonky. I set the products per page to 6 - first row has 2, second row 1, third row 3. I am using Column Layout Grid.

    @PMrbarbour, would you please double check your work?

    - /includes/modules/YOUR_TEMPLATE_FOLDER/product_listing.php~Column Layout Grid for Product Listing
    - /includes/modules/YOUR_TEMPLATE_FOLDER/product_listing.php~Flexible Product Listing
    - /includes/modules/YOUR_TEMPLATE_FOLDER/product_listing.php~SNAF

    Are example files extracted directly from the original downloaded from the plugins section and unaltered other than to replace the $max_results (1) line of code.

    Even if one was to upload these files they wouldn't have any effect.

    I will double check my uploaded against the original downloaded from the plugins section just to make sure though.
    Website - Github. Like the ZCA Bootstrap 4 Template? Donations Welcome. Bootstrap Plugins?

  6. #116
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

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

    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.
    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.

  7. #117
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    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.
    Website - Github. Like the ZCA Bootstrap 4 Template? Donations Welcome. Bootstrap Plugins?

  8. #118
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    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 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.

  9. #119
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    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.
    Website - Github. Like the ZCA Bootstrap 4 Template? Donations Welcome. Bootstrap Plugins?

  10. #120
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    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 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.

 

 
Page 12 of 15 FirstFirst ... 21011121314 ... LastLast

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

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