Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product Reviews - page layout source?

Product Reviews - page layout source?

Views: 2,355

Results 1 to 11 of 11
28 Nov 2011, 3:18 AM
#1
dedicationgraphics avatar

dedicationgraphics

New Zenner

Join Date:
Nov 2011
Posts:
3
Plugin Contributions:
0

Product Reviews - page layout source?

Hey Everyone,

Couldn't find an answer on this one, it might be an easy answer. Thanks in advance for any help here.

I'm trying to find the source of the product info on the product reviews page. For some reason the model name is coming up next to the image with an extra ">". I'd like to either remove the code thats calling the model name or just put a div around it so I can turn it's display to none.

Here's a link to the page from the site I'm working on as an example.
https://www.shoppetra.com/index.php?main_page=product_reviews&products_id=47

28 Nov 2011, 5:07 AM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Product Reviews - page layout source?

You might go to your Admin>Tools>Developers Tool Kit, and do a search for:

[H5]"
``` Hope this helps.
29 Nov 2011, 9:55 PM
#3
gwynwyffar avatar

gwynwyffar

New Zenner

Join Date:
Dec 2006
Location:
Hudson Valley, New York USA
Posts:
93
Plugin Contributions:
0

Re: Product Reviews - page layout source?

I'm having the same issue on my Product Review page. For some reason it's showing the product ID with an extra quote and greater than sign exactly like the original poster's. I've checked the tpl_reviews_default.php page but I don't see any error. It appears we are both using lightbox code for the images. I've also checked the tpl_modules_main_product.php page where the image display code is, but I don't see an error there. Any other ideas?
Code is posted below, maybe someone can see something I'm not.

<?php
/**
 * Module Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 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_modules_main_product_image.php 3208 2006-03-19 16:48:57Z birdbrain $
 */
?>
<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> 
<div id="productMainImage" class="centeredContent back">
<?php // bof Zen Lightbox 2008-12-15 aclarke ?>
<?php
if (ZEN_LIGHTBOX_STATUS == 'true') {
  if (ZEN_LIGHTBOX_GALLERY_MODE == 'true' && ZEN_LIGHTBOX_GALLERY_MAIN_IMAGE == 'true') {
    $rel = 'lightbox-g';
  } else {
    $rel = 'lightbox';
  }
?>
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="' . $rel . '" title="' . addslashes($products_name) . '">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>');
//--></script>
<?php } else { ?>
<?php // eof Zen Lightbox 2008-12-15 aclarke ?>
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>');
//--></script>
<?php // bof Zen Lightbox 2008-12-15 aclarke ?>
<?php } ?>
<?php // eof Zen Lightbox 2008-12-15 aclarke ?>
<noscript>
<?php
  echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
?>
</noscript>
</div>
30 Nov 2011, 6:42 PM
#4
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Product Reviews - page layout source?

For some reason it's showing the product ID with an extra quote and greater than sign exactly like the original poster's.

Are you also using a Template Monster template? The problem is that because of the way they code their templates, the element may not actually be located where it would in a standard Zen template.

1 Dec 2011, 12:46 AM
#6
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Product Reviews - page layout source?

gwynwyffar:

I'm using the Avonlee Contempo theme from Picaflor Azul
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1811

Great template, and standard Zen Cart. Try looking at:

includes/templates/avonlee_contempo/templates/tpl_product_info_display.php

1 Dec 2011, 1:25 AM
#7
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Product Reviews - page layout source?

That code is coming from the JavaScript for that add on which one did you use? It would appear to be missing the language text that tells you to mouse over or click the image

2 Dec 2011, 8:13 PM
#9
gwynwyffar avatar

gwynwyffar

New Zenner

Join Date:
Dec 2006
Location:
Hudson Valley, New York USA
Posts:
93
Plugin Contributions:
0

Re: Product Reviews - page layout source?

addition to above post

It's definitely coming from the Zen Lightbox add on since when I turn it off, everything appears correct. This ONLY shows on the product_reviews page. All other pages that show a product image are displaying properly.

28 Jun 2012, 1:48 AM
#11
rfree190 avatar

rfree190

Zen Follower

Join Date:
Sep 2007
Posts:
176
Plugin Contributions:
0

Re: Product Reviews - page layout source?

Searched and searched...
Finally found the issue...
Open includes/modules/pages/product_reviews/header_php.php.
In mine, it was line 85.
Find this line:

$products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';

I changed it to

$products_name = $review->fields['products_name'];

and it gets rid of the extra Product Model Number and >"

Hope this helps someone else that was in my shoes...

Have a wonderful day!
Rick