Results 1 to 7 of 7
  1. #1
    Join Date
    May 2010
    Posts
    136
    Plugin Contributions
    0

    Default need help with customizing product listing

    So this is what i want do...

    Right now I just have a new product catagory showing with 6 items,

    1. I want the program to automatically create a new page
    - For example when i create items 7-12, it will know to make page 2 so when the use clicks on page 2, it will show the next 6 items, in the same category box.

    I also want to be able to sent the number layout links like this:

    < 1 2 3 4 5 6 7 8 9 >

    below the new product category box

    Also for some reason i change the config to number per page for both product listing and new product listing value to 6, and nothing happen its still showing 7

    thanks everyone

    Right now it looks like this:


  2. #2
    Join Date
    May 2010
    Posts
    136
    Plugin Contributions
    0

    Default Re: need help with customizing product listing

    still need, if anyone could help me out that will be nice

  3. #3
    Join Date
    May 2010
    Posts
    136
    Plugin Contributions
    0

    Default Re: need help with customizing product listing

    still need help anyone????

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: need help with customizing product listing

    It sounds like you want the New Products section to work like the product listing display, where you can set a limit to the number of products displayed per page.

    There's no function or mod I'm aware of that will do that, so you would need to adapt the product listing code to the New Products section.

    A very big programming job, I think.

  5. #5
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: need help with customizing product listing

    Have a look at the Single Listing Template mod.

    http://www.zen-cart.com/index.php?ma...oducts_id=1531

  6. #6
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: need help with customizing product listing

    I haven't looked at the mod recommended in the earlier post, but here's my two cents anyway.

    First regarding the restriction on the number of records, I'm pretty sure the value you want to change is in Configuration\Maximum values\New Products Module. This will reduce the products displaying here, unless you've removed or otherwise edited code in the new_products.php module.

    As far as pagination is concerned, I have implemented this fairly quickly with results I retrieve for some custom forms I built. I tried doing it quickly to see if it would work in the new products module, but it failed for me for two reasons. First, I couldn't quite figure out how to split the results and randomise them at the same time. Probably if I spent some time, but don't have it to spend. Secondly, the query became malformed when trying to split the results, although this technique worked on simpler queries in the past. I suspect it may have something to do with the left joins, but who knows, perhaps you'll have more luck so I'll show you what I did anyway, in case you want to have a play around.

    First you would need to set the aforementioned New Products Module to something quite high (e.g. 9999) and then pass this query into the splitPageResults() function. you would do this in the new_products.php module, so look for the line below:

    PHP Code:
    if ($new_products_query != ''$new_products $db->ExecuteRandomMulti($new_products_queryMAX_DISPLAY_NEW_PRODUCTS); 
    comment this out, and add the following immediately before or after it:

    PHP Code:
    if ($new_products_query != '') {
        
    $new_products_split = new splitPageResults($new_products_query6);
        
    $new_products $db->Execute($new_products_split->sql_query);

    the number 6 here refers to the number of results you want on each 'page'. once you're done here, find the template file tpl_modules_whats_new.php, and add the following code to see paginated results below or above your results:

    PHP Code:
    <div class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE ' ' $new_products_split->display_links(MAX_DISPLAY_PAGE_LINKS$page_query zen_get_all_get_params(array('page''info''x''y''main_page'))); ?></div>
    <div class="navSplitPagesResult"><?php echo $new_products_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div>
    as i stated earlier, this didn't quite work for me but it should in theory if you play around with either the query in the module file itself, or probably more appropriately the splitPageResults() function as this seems to be where the query is altered, and subsequently malformed. i have it working with other more simple queries and found it quite useful.

    hope this helps!
    andrejs

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: need help with customizing product listing

    You say you have a "new product catagory"... so you created a category called Jewelries. Are you trying to display only the newest products? If not, why are you trying to use the new products centerbox instead of the product listing page? If you want the grid layout, get the Column Layout Grid mod from Free Addons. And if you want the category's product listing to show on the homepage, try admin > Configuration > Layout Settings >
    Categories - Always Show on Main Page > set to 1
    Main Page - Opens with Category > set to your category's id (1 in this case)

    It will be easier to give advice looking at your current live site than a screenshot.

 

 

Similar Threads

  1. v150 I need help with my product listing please help im going insane!!
    By Darion in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 10 Sep 2012, 04:16 AM
  2. v150 I need help with my product listing please help im going insane!!
    By Darion in forum General Questions
    Replies: 1
    Last Post: 10 Sep 2012, 02:12 AM
  3. need help with product listing
    By fox1983 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 19 Nov 2011, 12:34 PM
  4. need help with product listing !! please
    By Pariseau in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 May 2008, 05:22 PM
  5. Need help with product listing layout
    By jefrat72 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 27 Jul 2007, 01:52 AM

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