Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Category Pages Next/Prev Button

Category Pages Next/Prev Button

Views: 1,320

Results 1 to 6 of 6
17 Mar 2011, 6:59 PM
#1
marypotter avatar

marypotter

New Zenner

Join Date:
May 2008
Location:
Virginia Beach, Virginia, United States
Posts:
52
Plugin Contributions:
0

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

17 Mar 2011, 8:18 PM
#2
enchantedneedle avatar

enchantedneedle

New Zenner

Join Date:
Jan 2008
Posts:
74
Plugin Contributions:
0

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?

17 Mar 2011, 8:43 PM
#3
marypotter avatar

marypotter

New Zenner

Join Date:
May 2008
Location:
Virginia Beach, Virginia, United States
Posts:
52
Plugin Contributions:
0

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?

17 Mar 2011, 9:17 PM
#4
enchantedneedle avatar

enchantedneedle

New Zenner

Join Date:
Jan 2008
Posts:
74
Plugin Contributions:
0

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"

17 Mar 2011, 9:41 PM
#5
marypotter avatar

marypotter

New Zenner

Join Date:
May 2008
Location:
Virginia Beach, Virginia, United States
Posts:
52
Plugin Contributions:
0

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! :clap:

17 Mar 2011, 10:11 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

<?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
}
?>