Page 1 of 15 12311 ... LastLast
Results 1 to 10 of 147
  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
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

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

    Quote Originally Posted by yellow1912 View Post
    I was planning to do that, too lazy.
    I also

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

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

    I was wondering... any ideas on how i would go about to have the
    Code:
     Per pages 10,20,30,All
    to display in a drop down menu?

    Thanks!!!!
    Urban art to the fullest!

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

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

    Look at the way Zencart displays drop-down menu, I think the function is called zend_draw_drop_down or something, should be in html_output.php
    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

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

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

    yep i see it
    PHP Code:
    function zen_draw_pull_down_menu($name$values$default ''$parameters ''$required false) {
        
    $field '<select name="' zen_output_string($name) . '"'
    but i don't really know what to do with it

    Thanks for the help
    Urban art to the fullest!

 

 
Page 1 of 15 12311 ... 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