Thanks!
Printable View
I need help fixing an issue we are currently experiencing on our site with this mod. We are currently using zen_lightbox-v1.6.4a_1.5. If you go here: http://www.clevershoppers.com/index....ducts_id=13478 you will notice the extra garbage ([EI2915]">) on top of the image. If I disable Zen Lightbox, this garbage goes away and everything works as expected. We are also using image handler on our site and I made sure it was installed before Zen Lightbox since Zen Lightbox also share some files with Image Handler (and supposedly included what's needed by Image Handler). Thanks for help me troubleshoot this problem.
I know I had this same problem and it has to do with the model number---that is the garbage you see
I am looking thru my files to find the fix which was somewhere in this forum..several months ago.
forgot to mention that I think it has nothing to do with lightbox or IH either
Thanks for your prompt response. If you find your solution please let me know. I will continue to dig through this thread to see if I find it. The fact that the problem goes away when I disable Zen Lightbox makes me to think it they are somewhat related but perhaps not.
still looking, I usually write down what I find as a "fix" to problems for later looking at but had a slight computer outage not long ago and can find it quickly right nw...
but if I recall it was brought up here or in the IH3 thread and it was found that it was not them but a main file....but as I said that was a couple of months ago and I can't remember/
will be back
I think this is it:
mainly because if you notice it is ONLY in the reviews to read area:
To fix this in the *includes/modules/pages/product_reviews/header_php.php* file
FIND:
---------
if (zen_not_null($review->fields['products_model'])) {
$products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
} else {
$products_name = $review->fields['products_name'];
}
---------
REPLACE WITH THIS:
---------
if (zen_not_null($review->fields['products_model'])) {
$products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields']</span>';
} else {
$products_name = $review->fields['products_name'];
}
}
---------
hope it works
Thanks for the post. That did not work. I got a blank page with the following error in the log:Quote:
[16-Nov-2013 22:05:16 America/New_York] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /includes/modules/pages/product_reviews/header_php.php on line 43
try leaving out the very last }
I may have added in an extra one...and make sure you do not remove anything other than what it needs removed
<span class="smallText">[' . $review->fields['products_model'] . ']</span>'; < --- this is the culprit
<span class="smallText">[' . $review->fields']</span>'; <---should look like this so remove the text in red
It's not really an issue with this mod.. It's a minor Zen Cart core code issue that is ILLUMINATED when this mod is activated.. It has been marked as being fixed in v1.6. Solution is in the post below:Quote:
the includes/modules/pages/product_reviews/header_php.php file uses different code to display the product name and model number than the includes/modules/pages/product_reviews_write/header_php.php file. It would appear that the activation of the Zen Lightbox or Zen Colorbox add-ons simply made it easier to spot this difference.
http://www.zen-cart.com/showthread.p...number-display
Thanks! Since basically, we are removing the product_model I tried this which works:The section of the code above is simply saying, if product_model exist use it and if not, use product name. Since the product_model on the review page is causing issue right now, I basically changed it to just show product name without the product model. It solves the problem I am currently experiencing but hope it didn't create something else but I am not seeing any error in the log at the moment.PHP Code:
// if (zen_not_null($review->fields['products_model'])) {
// $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
// } else {
$products_name = $review->fields['products_name'];
// }
Thank you so much for your assistance. You're a GOODAngel :D