Forums / Templates, Stylesheets, Page Layout / Product is showing up twice on listing page.??

Product is showing up twice on listing page.??

Locked

Views: 851

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
23 Aug 2009, 9:19 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Product is showing up twice on listing page.??

As no-one else has answered here goes.

The template that creates the product info page is tpl_product_info_display.php which is in (includes/templates/yourtemplate/templates/) Either this template is wrong or it is being loaded twice.

So, check that file to see that nothing is obviously repeated in it. This line:

<div class="centerColumn" id="productGeneral">

should only appear once.

Then when that doesn't help (most likely) have a look at main_template_vars.php (includes/modules/yourtemplate/pages/product_info/ or includes/modules/pages/product_info/). You are looking for a line that reads:

  require($template->get_template_dir($tpl_page_body,DIR_WS_TEMPLATE, $current_page_base,'templates'). $tpl_page_body);

This is the line that calls the template. Again it should only appear once.

If you do not find something weird in either of these two places then there is something very strange going on.

If you haven't made any alterations to these files I would be tempted to replace them with the originals from the install ( or download another clean version of Zen and use the files from there.) Also it is always worth checking if the problem persists if you switch to classic template briefly.

Let me know....

Nick
iszent.com

24 Aug 2009, 3:20 PM
#3
sfadam avatar

sfadam

New Zenner

Join Date:
Aug 2009
Posts:
2
Plugin Contributions:
0

Re: Product is showing up twice on listing page.??

Thanks for the reply.. much appreciated.. your fist solution was the problem....the entire page template is repeated twice for some reason...

Page Template
*

  • Loaded automatically by index.php?main_page=product_info.<br />
  • Displays details of a typical product
  • @package templateSystem
  • @copyright Copyright 2003-2006 Zen Cart Development Team
  • @copyright Portions Copyright 2003 osCommerce
  • @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  • @version $Id: tpl_product_info_display.php 5369 2006-12-23 10:55:52Z drbyte $
    */
    //require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');
    ?>
<div class="centerColumn" id="productGeneral"> etc....

this code starts out at the top of the page and everything else needed behind, then is completely duplicated.... pretty weird....

again, thanks alot..
adam
:clap::clap:

24 Aug 2009, 3:29 PM
#4
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Product is showing up twice on listing page.??

Bizarre, yet easily solved, problems are a nice kind of problem!

Nick
iszent.com