Page 1 of 2 12 LastLast
Results 1 to 10 of 147

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

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

    This mod was originally written by a_berezin and has never been released before(according to Voltage).
    I'd like to thank a_berezin for coding this very useful mod, and Voltage who was so kind to send me the code.

    I. Feature:
    This mod will allow your customers to set the maximum number of products to be displayed per page.
    Please note that this does not work in "All listing", "New listing", and "Special listing". The reason is that each of those listings actually has each own module (with all the querying, and stuff. I just can't understand why ZC can't try to use a single module and template for all the listings)
    This does not mean that it's impossible, it's just that I don't have time for that now.

    Link to download:
    http://www.zen-cart.com/downloads.php?do=file&id=496
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  2. #2
    Join Date
    Dec 2006
    Location
    montreal
    Posts
    25
    Plugin Contributions
    0

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

    Hi...

    When i run the 'new_install.sql' i get this:

    Code:
    2000 Duplicate entry '764' for key 1
    in:
    [INSERT INTO configuration VALUES (764, 'Product Listing - Number of Items Per Page Steps', 'PRODUCT_LISTING_MAX_DISPLAY_STEPS', '12,20,28,48,96,All', 'Number of Items Per Page Steps', 8, 45, '2006-09-01 00:06:29', '2006-08-31 23:33:07', NULL, NULL);]
    any idea on how to fix? i'm puzzled...

    THANKS!!!!
    Urban art to the fullest!

  3. #3
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

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

    This can be easily fixed, the quickest (and dirty) fix is to take a look at your configuration table (using phpmyadmin), see the latest id number there, say like 899, so you change the query to:

    Code:
    INSERT INTO configuration VALUES (900, 'Product Listing - Number of Items Per Page Steps', 'PRODUCT_LISTING_MAX_DISPLAY_STEPS', '12,20,28,48,96,All', 'Number of Items Per Page Steps', 8, 45, '2006-09-01 00:06:29', '2006-08-31 23:33:07', NULL, NULL)

    A better fix will be provided later.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #4
    Join Date
    Dec 2006
    Location
    montreal
    Posts
    25
    Plugin Contributions
    0

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

    That did the trick!!

    THANKS for sharing yellow1912!
    Urban art to the fullest!

  5. #5
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

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

    yellow1912,
    Please update install.sql file:

    INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES (NULL, 'Product Listing - Number of Items Per Page Steps', 'PRODUCT_LISTING_MAX_DISPLAY_STEPS', '12,20,28,48,96,All', 'Number of Items Per Page Steps', 8, 45, NOW(), NULL, NULL);

  6. #6
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

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

    I was planning to do that, too lazy. Will do it now ^^

    Quote Originally Posted by a_berezin View Post
    yellow1912,
    Please update install.sql file:

    INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES (NULL, 'Product Listing - Number of Items Per Page Steps', 'PRODUCT_LISTING_MAX_DISPLAY_STEPS', '12,20,28,48,96,All', 'Number of Items Per Page Steps', 8, 45, NOW(), NULL, NULL);
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  7. #7
    Join Date
    Jan 2007
    Posts
    148
    Plugin Contributions
    0

    Have a Drink How to fix spacing problem...

    Hi Yellow1912-- thanks for a great module!

    Is there a way to fit all this on one line, so that they appear in this order:

    "Number of Products Per Page: 12 20 28 48 All", then "Displaying 1 to 8 (of 94 products)", and then lastly "1 2 3 4 5 ... [Next >>]" ???

    Here's my site link to it:

    http://www.musecards.com/store/index...dex&cPath=3_10

    I would actually love to get rid of tje "Diplaying 1 to ..." altogether, as it's way too cluttered right now and it's wrapping onto a second line.

    Thanks in advance for your help!

    Alice

  8. #8
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

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

    Dear PHLASH: I'm sorry but I'm pretty busy this week and can't help you rite now. I'll try to add that once I have time.

    Dear bluealice:
    For turning off the "Displaying 1 to 8 (of 94 products)", you can try to search around the forum, someone should have asked (and got the answer) for this before. This has nothing to do with this mod tho.

    Is there a way to fit all this on one line, so that they appear in this order:
    --> you sure can, look at the template file that this mod edits, you can place the mod's code anywhere you want.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  9. #9
    Join Date
    Dec 2006
    Location
    montreal
    Posts
    25
    Plugin Contributions
    0

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

    THANKS yellow1912,

    whenever you find some free time will do!
    not a rush at all, were here till tha end!!!
    Urban art to the fullest!

  10. #10
    Join Date
    Jun 2011
    Location
    California
    Posts
    63
    Plugin Contributions
    0

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

    I wanted to install the mod http://www.zen-cart.com/index.php?ma...roducts_id=716
    Will this work on Zen 1.3.9h?

    I ask this because the requirements to insall this
    mod says you need Column Layout Grid for Product Listing
    installed first, that mod is for Zen 1.3.8 is this going to
    run on Zen 1.3.9h?

 

 
Page 1 of 2 12 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