Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Virginia Beach, Virginia, United States
    Posts
    52
    Plugin Contributions
    0

    Default Category Pages Next/Prev Button

    I think I may have removed the prev/next code from the template layout for my categories page.

    This is showing up on my products pages, but my categories page is missing it so it only shows the first few products.

    I tried searching and I couldn't find how to put it back on. I checked in admin-config-product info and
    Previous Next - Button and Image Status is turned on.

    Am I missing something and please show me the way.

    I am using the latest version of zen cart 1.3.9h and i have the following add on installed:
    dual pricing
    image handler 2
    slimbox

  2. #2

    Default Re: Category Pages Next/Prev Button

    The code that would make it show up would be in a template file. Have you made any changes in there that might have altered it?

  3. #3
    Join Date
    May 2008
    Location
    Virginia Beach, Virginia, United States
    Posts
    52
    Plugin Contributions
    0

    Default Re: Category Pages Next/Prev Button

    I very well could have. But I can't even figure out what template file it is that would have housed this code. Or I could just compare the files. I tried several and I'm just not seeing it.

    Perhaps it's because my brain is fried. Any ideas to which template I should be looking at?

  4. #4

    Default Re: Category Pages Next/Prev Button

    Wait, I think I may have misunderstood your post. Do you mean on the page where it lists all of the products that are in a category and then you click on one to take you to the product page? If that is the page you are talking about. I think you can stop looking, because a previous/next was never there. I believe the default is a line that says "Displaying 1 to XX of XX products"

  5. #5
    Join Date
    May 2008
    Location
    Virginia Beach, Virginia, United States
    Posts
    52
    Plugin Contributions
    0

    Default Re: Category Pages Next/Prev Button

    Yes, that is what I meant. :)

    Thanks. I found the code I deleted by comparing the tpl_modules_product_listing.php from my customized templates with the one located in template_default and reinserted it.

    Thanks so much! That was a giant help. I was googling the wrong thing this whole time. You are awesome!

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Category Pages Next/Prev Button

    Check the original file for:
    /includes/templates/template_default/templates/tpl_modules_product_listing.php

    and check your templates and overrides file for:
    /includes/templates/your_template_dir/templates/tpl_modules_product_listing.php

    and compare to a clean Zen Cart v1.3.9h for this file ...

    You should see code similar to:
    Code:
    <?php if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {
    ?>
    <div id="productsListingTopNumber" class="navSplitPagesResult back"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div>
    <div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page'))); ?></div>
    <br class="clearBoth" />
    <?php
    }
    ?>
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. order of products not reflected in prev-next button
    By charliepingpong in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 29 Oct 2011, 09:22 AM
  2. EZ pages Prev/next button location
    By Akasashasha in forum General Questions
    Replies: 3
    Last Post: 28 Oct 2009, 01:50 PM
  3. Prev/Next button spacing on Product Info?
    By otakushark in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Jun 2008, 03:05 AM
  4. prev & next on category pages
    By slabadoo in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 28 Jan 2008, 04:26 PM
  5. prev/next button - manufacturers
    By etoile03 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Jan 2008, 07:04 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