Re: Cherry Zen Template Support Thread
Good Point! I was getting pretty tired last night while coding this and totally overlooked this.
I revamped all the code and inserted a table to get the best results. The stylesheet mod is no longer necessary.
OK, here goes again...
To fix the problem of the drop shadow surrounding the "larger image" link text under the product image picture when using zen_lightbox:
Open your //cherry_zen/templates/tpl_modules_main_product_image.php file.
Around line 15 look for this line:
<div id="productMainImage" class="centeredContent back">
Just ABOVE this line insert this code:
<table><tr><td align="center">
Around line 35, DELETE this:
Code:
Code:
if (ZEN_LIGHTBOX_STATUS == 'true') {
echo '<script language="javascript" type="text/javascript"><!--
document.write(\'<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' . addslashes($zen_lightbox_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>';
} else {
echo '<script language="javascript" type="text/javascript"><!--
document.write(\'<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>';
}
[FONT=monospace]
AND REPLACE IT WITH THIS:[/FONT]
Code:
if (ZEN_LIGHTBOX_STATUS == 'true') {
echo '<script language="javascript" type="text/javascript"><!--
document.write(\'<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' . addslashes($zen_lightbox_products_name) . '">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</div></a></td></tr>\')//--></script>';
} else {
echo '<script language="javascript" type="text/javascript"><!--
document.write(\'<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) . '</div></a></td></tr>\')//--></script>';
}
Now look for this line:
<!-- eof Zen Lightbox v1.4 aclarke 2007-09-15 -->
Just UNDER this line insert this code:
Code:
<div id="productMainImage" class="centeredContent back">
[FONT=monospace] Insert this code at the very BOTTOM after the </div> tag:
[/FONT]
Code:
<tr><td algin="center"><span class="imgLink"><a href="<? zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' . addslashes($zen_lightbox_products_name); ?>">larger image</a></span></div></td></tr></table>
That's it! Your link text will now appear perfectly centered below the picture drop shadow as it should.
If you want to save time, I created a fix file that you can download here from one of my websites.:D
Just upload the "includes" folder to your website.
Re: Cherry Zen Template Support Thread
EDIT -- I had to make a quick correction to my last post. The image text wasn't linking to the picture in Internet Explorer 6.
Here is the corrected line:
[FONT=monospace] Insert this code at the very BOTTOM after the </div> tag:
[/FONT]
Code:
<tr><td algin="center"><span class="imgLink"><a href="<?=zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' . addslashes($zen_lightbox_products_name); ?>">larger image</a></span></div></td></tr></table>
The fix file was updated too.
The ridiculous 7 minute edit rule prevented me from editing my last post.
:P
Re: Cherry Zen Template Support Thread
Re: Cherry Zen Template Support Thread
Sorry if this is a duplicate post
has anyone installed jrox affiliate JAM on a cherry zen template the defautl installation for zen cart doesn't seem to work
Re: Cherry Zen Template Support Thread
jettru,
Can you help me out with something please, I would like to put a tall banner (skyscraper) on the left side of my page where the black section finishes. Is there a sidebox banner that would appear there?
Thanks
Pete
fun fancy dress dot com
Re: Cherry Zen Template Support Thread
No worries, figured it out. Just used bannerbox 1, I needed to add some of my other banners to the bannersall, but all ok now.
P
Re: Cherry Zen Template Support Thread
Hi,
I am new to zen cart and have opted for this great cherry zen template.
I am just getting started and my site is here:
http://www.feltingforum.com/classes
IMAGE SIZING options
IF my uploaded product images are larger than 145, they spill over the gray backround on the right and left boxes. I would like to have my images more like this site: http://miss-crow.com/shop/
LARGE for the main body, very large on the product purchase page and fitting properly on the side boxes, please advise.
SALE_TEXT_HEADER
How do I completely remove this?
LINKS BELOW THE SALES HEADER TEXT
How do I remove these?
ADD A LINK TO THE TOP NAVIGATION & MAINTAIN FORMATTING
How can I add an external link to the top nav and maintain that formatting?
Thank you!
Re: Cherry Zen Template Support Thread
(cannot see how to edit my own post)
I have removed the categories successfully.
I am finding image help.
So only still needing help on removing sales header
and adding a link at top...thanks!
Re: Cherry Zen Template Support Thread
Hi everyone!
First of all sorry for asking a questions that probably have been asked several times before. I just couldnīt get through this massive thread.
First question: in IE7 and Firefox the site does not float, so when the resolution is low like 1024x768 there will be alot of blue background on the left. In IE6 its no problem.
http://www.dammbutiken.se/PROVAR/Dammbutiken2.jpg
Second question This poblem is on the other hand only in IE6 and not in firefox or IE7
http://www.dammbutiken.se/PROVAR/sshot-1.jpg
So how can i correct this?
Thanks!
Re: Cherry Zen Template Support Thread
Are you aware of any issues to upgrading this template to 1.3.8? Also, do you know of a way to enable the wpp without having to upgrade the whole cart?
Thanks
P