Still have not found the answer to this little problem.
Printable View
Jade you make an amazing template. Thank You
I have a little problem that is more the fact that i am not formular with PHP then it is with this template.
i am trying to add a logo and a banner, so i was reading the readme.txt and it say "Your logo could be wider here, Sales Header Text Could Be here, Or a Banner Image, or any combination of the three; find instructions in the readme.txt, which you have read already, right?" so i opened up hearder.php and tried to edit
my question is how do i keep a tagline and a banner? with this code i dont get the image at all but the logo works fine, and how do i keep them all aligned?PHP Code:
// added defines for header alt and text
define('HEADER_ALT_TEXT', 'Kays Naturals :: Build Muscel Not Fat');
define('HEADER_SALES_TEXT', 'kaysbanner.jpg');
define('HEADER_LOGO_WIDTH', ' ');
define('HEADER_LOGO_HEIGHT', ' ');
define('HEADER_LOGO_IMAGE', 'kayslogo.gif');
thanks for any help
Please help! I am new to customizing my template and found this template awesome! I encountered a problem though, some of my products has additional images and the additional images seemed to be out line- way right.. how can i make it center like the rest? please take a look- here's my problem-
http://www.spendyourhusbandsmoney.co...products_id=97
I'm so dizzy now trying to solve the problem..:cry:
Please help! Thank You!!!
Hey there!
I just want to say that my husband finally figure it out. Basically, the reason why everything went out of alignment is because of my filename. What I did was the filename I used for the additional images is the product code. For example, my main image's filename is 15732.gif, then the filename that I used for the additional image is 15732_157277.gif (I do this so I won't forget the product code of each items). So what my husband figured out was just simply saved it as 15732_a or b up to z.. then, everything went fine!! :D I'll just use a different system then to remember the different product codes of each additional item.
Thanks again for this awesome template!
Why not give the first part of the filename the same as what your next product is going to be...
so lets say your on product id# 137
you can name your image as: 137-filename.jpg and of course large images as 137-filename_LRG.jpg
This allows you to keep the product id in place all of the time. This is how I do my sites and I teach my clients to name in the same way, this way if they have to track an item down, down the road, it's far easier to do than getting in admin to see what the filename would be.
Jet can you take another look at my site http://hiquatec.com
any other suggestions on the home and log in links.
I have designed the template to have the add to cart under the image, this allows for people to turn on options, manufacturer name, etc., and have all that extra stuff on the right side, with the image and add to cart to the left, here's an example:
http://www.cherryzen.jadetrue.com/in...&products_id=1
Of course, you can change this, if most of your products don't use options, etc. Open up includes/templates/cherry_zen/templates/tpl_product_info_display.php. You'll see that this file is very nicely segregated. You can move the ADD TO CART chunk to directly underneath this chunk:
Then you'll probably need to adjust the padding of #cartAdd in the stylesheet.css.Code:<!--eof Attributes Module -->
Your site seems to be not loading right now. Also, can you please state the entire issue, I can't remember what it was from before, and don't want to search backward, thanks!Quote:
Remember that you need to point to the actual image. SO, something like "../images/kaysbanner.jpg" would work, if you have the image in the main images/ folder. Right now its looking for the image in the main site folder.
If you're still having issues, please reply with a link to your site.
Quote:Try pasting this instead of the previous code I posted. I didn't realize you wanted the dividers back. :cool:Code:<div id="navMainLinks">
<ul class="back">
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><span><?php echo HEADER_TITLE_CATALOG; ?></span></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_LOGIN; ?></span></a></li>
</ul>
</div>
ok I pasted that and it corrected the links but now the header is blue
http://hiquatec.com
Quote:
<?php
/**
* Common Template - tpl_header.php
*
* this file can be copied to /templates/your_template_dir/pagename<br />
* example: to override the privacy page<br />
* make a directory /templates/my_template/privacy<br />
* copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
* to override the global settings and turn off the footer un-comment the following line:<br />
* <br />
* $flag_disable_header = true;<br />
*
* @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_header.php 3392 2006-04-08 15:17:37Z birdbrain $
*/
?>
<?php
// Display all header alerts via messageStack:
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
echo htmlspecialchars(urldecode($_GET['error_message']));
}
if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
echo htmlspecialchars($_GET['info_message']);
} else {
}
?>
<!-- divs for drop shadow -->
<div id="nw"><div id="ne"><div id="se"><div id="sw"><div id="n"><div id="s"><div id="w"><div id="e"><div id="main"><table id="workaround"><tbody><tr><td>
<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>
<div id="headerWrapper">
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
<div id="navMainLinks">
<ul class="back">
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><span><?php echo HEADER_TITLE_CATALOG; ?></span></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_LOGIN; ?></span></a></li>
</ul>
</div>
:smile: </ul>(I Took This Out):smile:
:smile: </div>(and this and it fixed the problem):smile:
<div id="navMainSearch">
<?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
</div>
</div>
</div>
<div class="clearBoth"></div>
<!--eof-navigation display-->
<!--bof-branding display-->
<div id="logoWrapperOuter">
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT) . '</a>'; ?></div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
<?php
}
?>
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
}
}
?>
</div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
</div>
</div>
<div class="clearBoth"></div>
<!--eof-branding display-->
<!--eof-header logo and navigation display-->
<!--bof-header ezpage links-->
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<!--eof-header ezpage links-->
<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<!--eof-optional categories tabs navigation display-->
<!--bof-drop down menu display-->
<?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
<!--eof-drop down menu display-->
<div class="clearBoth"></div>
<?php } ?>
Amazingly, I was able to take care of 28 of 29 validation errors. The final one seems to be Cherry Zen related but I'm having a difficult time tracking down the source of the problem. Here is the error as listed:
Searching on the error itself brought me to this post byQuote:
1. Error Line 35, Column 296: value of attribute "type" cannot be "search"; must be one of "text", "password", "checkbox", "radio", "submit", "reset", "file", "hidden", "image", "button".
…tion" value="1" /><input type="search" name="keyword" id="searchTop" size="20
The value of the attribute is defined to be one of a list of possible values but in the document it contained something that is not allowed for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected="selected"”; a value like “selected="true"” is not allowed.
Kuroi. It seems as though I need to change type="search" to type="text". However, I can't find where I need to make that change. :( I'm getting a negative return for type="search" in the Developers Tool Kit.
Can one of you folks point me in the right direction? Thanks!!
New to Zen Cart and am massively impressed with all your templates (especially cherry and apple zen)
Have searched the thread and cannot for the life of me find the answer to my problem..
If I enable search_header.php then nothing shows anywhere on the site except what looks like the top header bar in red but no other text, buttons, categories, etc.
I have tried a complete new install of Zen Cart and template but to no avail...
(MySQL database on a Linux server if it makes a difference)
:wacko: sorry for being so newbie and cluless!
Sorry for double post - missed 7 minute edit allowance...
Validation gives a total of 34 errors with search_header but zero without.
(MySQL database on a Linux/UNIX server if it makes a difference)
:wacko: sorry for being so newbie and cluless!
URL: www.poshtotties.com :oops:
The error causes no site issues, it is ok to have it. It is type="search" so that in Safari it has the rounded search box. Change it to text, and it will be a square box in safari. Up to you. :smile:
You can change it in includes/functions/extra_functions/search_field_header.php
hi jettrue,
do you know how to add a shopping cart image and item count to the header? I put the code below in the tpl_header, but it doesn't show...
thanks.Code:
<li>My Cart: <span class="style1">
<?php echo sizeof($_SESSION['cart']->get_products()); ?> items
<?php $header_cart = $currencies->format($_SESSION['cart']->show_total());
echo $header_cart;
?>
</span>
<br class="clearBoth" />
</li>
I am having problems with the Login Page. Background is the color of the body but most of all the Login and Register forms are all over to the right and expand beyond. I haven't made any changes.
I took a look at your demo page and when I clicked on the Login link your demo page does the same thing. Any ideas on how to fix this?
BTW: Excellent Template, your notations and instructions are superb! Thank YOU!
Quest
Oh! LOL! I was trying to test something for someone, and forgot to remove the code:
Its at the bottom of stylesheet.css, just remove it.Code:#loginBody #navColumnOne, #loginBody #navColumnTwo {
display:none;
}
#loginBody .contentWrap {
background:#fff;
clear:both;
}
#loginBody .outer {
padding:0!important;
}
#loginBody .float-wrap {
width:90%
}
You ROCK!
I saw that code from checking the source code and in your instructions, I played around with it but to no avail. Didn't want to remove it all... Thanks man for the quick response to my query. I commented out the code in the css and all is fine now.
Thanks again for the help and the great template!
Quest
hi jettrue,
i tested the code on the oem cz template and it works fine. i think what is happening is that it is being blocked by an image... it currently displays in the top left of the header (just under the top nav bar and right next to the cz logo).
how would i move the display? how can i position it to display on the right side of the header in the middle???
thanks!
<li>My Cart: <span class="style1">
<?php echo sizeof($_SESSION['cart']->get_products()); ?> items
<?php $header_cart = $currencies->format($_SESSION['cart']->show_total());
echo $header_cart;
?>
</span>
<br class="clearBoth" />
</li>
Concerning the larger image link underneath the main image on the product page: If you take a gander at mine, you'll see that it is just a tad too far south. Can someone be so kind as to tell me how to bump it up a bit?
Hmmm... I just noticed that in IE the larger image text is just text, not a link. OK in FF
Thanks!
Trying everything I can to install a template and I understand moving the file includes to the ftp but where?
Do I replace the current includes file under zencart or is the includes file just placed on the server as it's own file.
I have moved the cherry file to the templates and can get my site to look like the cherry template and that works to change the overall look but there are no sideboxes or anything. Directions say to move the entire includes file and that is is.
Where does this fill file goe exactly. This is my first attempt and I have looked all over for specific directions and don't see a thing.
Hope you can help a newbie!!!
Are you using the includes/templates/cherry_zen/templates/tpl_main_product_image.php
I think you are not, because I see some comments for a "slimbox" mod. You'll need to merge the two files to fix your issue.
You've completely changed the way the template works, moving the leftbox section, adding <td>'s around the sideboxes, etc. Reload the original includes/templates/common/tpl_main_page.php.
If you see the cherry zen template, then you've probably done it right.
The files are in the correct zen cart structure. If you are using an FTP program to upload the files, and if you upload the entire includes/ folder to the root of your store, all the files will magically "GO" into their correct spots, filling in where they belong. However, you are not ENTIRELY replacing the current includes/ folder, as there are other files there besides the cherry_zen files.
You turn on the sideboxes in your admin, under "tools", "layout boxes controller".
hi jettrue,
i've manged to get the cart items to display in the header, but it pushes my centered logo to the left (which covers the images on the left)...
how to i get the logo to remain centered and still have the cart items (and a shopping cart image) display on the right?
i added this to the style sheet:
And this to the tpl_header.php:Code:#ShoppingCart {
float:right;
padding-right:25px;
text-align:center;
}
and here is a link to the test site so you can see what is happening:Code:<!-- bof cart in header -->
<div id="ShoppingCart" class="clearfix">
My Cart: <span class="style1">
<?php echo sizeof($_SESSION['cart']->get_products()); ?> items
<?php $header_cart = $currencies->format($_SESSION['cart']->show_total());
echo $header_cart;
?>
</span>
<br class="clearBoth" />
</div>
<!-- eof cart in header -->
http://tinyurl.com/5fbh7b
thanks!
I'm trying to figure out what size to make the background image so the light blue is textured. Then my next problem is where to change the code or include the picutre. I have searched the forum but nothing seems to let me know what to do.
Here is my site http://artisticscrapdesigns.com/zencart/ also how do I change the url so it's just artisticscrapdesigns.com and not the zencart. Do I have to uninstall and reinstall for this?
How can I change the color of the background for the image pop up on cherry zen?
I have looked everywhere?
Thank you
nobody?
Hi Jade - I assume you meant tpl_modules_main_product_image.php. I merged the two, cleanly it seems, and reloaded the original includes/templates/common/tpl_main_page.php but can see no effect. It is still pulling drastically to the left, especially noticeable in FF as it throw the left sidebox out of whack.
I'll look back at changes I was working on prior to this issue to see if I can track it down. Any thoughts are much appreciated.
Could anyone please help...
upon installing the Cherry Zen template tpl_search_header.php was not in my options in the Layout Boxes Controller section, if I ftp the file into a subfolder called cherry_zen in the modules/sideboxes directory the option shows but will still not display a search box in the header (top-left) as everyone else seems to have no problem with at all...
Any ideas at all would be greatly appreciated - thanks
Make sure you if you are using the over ride system you go through and rename the Cherry Zen folders to your custom name template. Then
[FONT="] Go to "Admin/Tools" then "Layout Boxes Controller" and turn on the Be sure to turn on the tpl_search_header.php, by setting the "single column status" to on. This will put the search box on the top left of the site.[/FONT]
Hi there
I am using Cherry Zen Template, but the product listing page does not show up if there is only one product in the sub-category. Really dunno where went wrong. Please help!!
Here is the product listing page http://www.omegagolfshop.com//index....ex&cPath=84_88
Many thanks.
I found another two problems.
1) A blank page comes up once I click "Add to cart" button for any product. I have to click go back and shopping cart to view the content.
2) Also a black page comes up when I tried to changes and updates the quantity of product in shopping cart.
How can I fix the problems??
hi jettrue,
how would you move the add to cart button up so it displays right under the item info and/or attributes?
no ideas on the header issue?
thanks.
Hi,
I am trying to make the cherry zen template 800px wide. I have changed the stylesheet to 800px but the HOME LOGIN MY ACCOUNT SHOPPING CART CHECKOUT section has dropped a little into the header area, I tired reseting to 880px but still no good. It seems that it will only go to 900px without dropping down.
Anyone had this problem and know how to fix?
I'm using a clean install 1.3.8
Thanks for any help you can give
You might want to have a little more patience when posting questions, you can't expect responses that quickly.
Also, a quick search in the forum would have answered your question even more quickly, here's a section of css you can add to your stylesheet.css, of course changing the background color to what you want. This of course will change the background color of all popups, you can change the image only with #popupImage:
#popupShippingEstimator, #popupSearchHelp, #popupAdditionalImage, #popupImage, #popupCVVHelp, #popupCouponHelp, #popupAtrribsQuantityPricesHelp {
background-color: #ffffff;
}
The main_product_image.php is NOT what is messing up your sideboxes. Your site is STILL showing a modified tpl_main_page.php, as your site is using TABLES as the basis for the layout, and my template does not. Compare the source of my test site (www.cherryzen.jadetrue.com) and and yours, and you'll see, for starters, that for the content portion of the site, you have this:
whereas my site has this:Code:<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
In tpl_modules_main_product_image.php, change productMainImage to productImage.Code:<div id="contentMainWrapper">
[FONT=Arial]thanks for the replies jettrue. :-)
do i move the lines in red when i move the code or do i leave one or both of them in place? *i am going to move it just below the attributes code...
[/FONT] [FONT=Arial] <!--eof Attributes Module -->[/FONT]
[FONT=Arial]I am going to instert here[/FONT][FONT=Arial]
</div> <!-- end of rightFloat -->
[/FONT][FONT=Arial] <br style="clear:left" />[/FONT][FONT=Arial]
[/FONT][FONT=Arial] <!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="2" />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
<?php
?>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
[/FONT][FONT=Arial] <br class="clearBoth" />
[/FONT][FONT=Arial]thanks![/FONT][FONT=Arial][/FONT]
hi jettrue,
one other quick question... :-)
i have the optional display code for columns installed (instead of rows). when i add text to the category page, how do i get the text to display below the categories rather than above??? http://tinyurl.com/6qm6mg
thanks.
hi jettrue,
i installed the short descriptions for categories mod and i get this error on all of the pages now:
Home
1054 Unknown column 'categories_description_sub' in 'field list'
in:
[SELECT categories_description, categories_description_sub FROM categories_description WHERE categories_id= 0 AND language_id = 1]
Hi Jade,
Thanks for the quick reply, I changed the 750px to 650px and it works fine now.
Suekay
Jeez... Sometimes I'm such a goon! I kept reloading the Zen original tpl_main_page.php instead of the Cherry Zen original tpl_main_page.php.
:oops: Sorry for the extra effort.
Could I trouble you for another bit of info? Concerning the larger image link underneath the main image on the product page: If you take a gander at mine, you'll see that it is just a tad too far south and the box sides are too wide. Would you be so kind as to tell me how to tighten it up a bit?
Thanks
yep sure did. i used the upload option.
but... i just re-ran the sql code using the cut and paste and it works!
thanks.
This is still because of productMainImage instead of productImage. Be sure to reload the original cherry_zen includes/templates/cherry_zen/templates/tpl_modules_main_product_image.php. You can see on my test site that this is not an issue, there is something wrong with that file on your site.
I didn't see the answer posted by jettrue.
I have the same problem. It also shows up on Safari (I'm using 3.1.1). The entire center column is the background color when both side columns are disabled.
http://critterwheels.com/index.php?main_page=login
Well, this has got me going crazy!
Creating a site at www.justpreparing.com (which is going to another domain- soon!)
Everything was going fine until I "clicked around" in IE- the pages are all looking great EXCEPT the login page. I haven't done anything to that page (that I know of)
Usually I can narrow down the issue but this one is kind of blowing me away!
Any thoughts?
Thanks
Nancy
Yep, same here. It's even broken on the demo site. I spent quite a while trying to figure out what I did wrong and then went to the "official" site. It looks OK with Firefox but still isn't right. Completely broken in IE7.
Well, now that I look more closely in Firefox... it's not right there either. Neither the left or the right columns are showing up in the login page.
Still don't have a clue how to fix it- but maybe ???
thanks countrycharm for trying to help with my 'tpl_search_header' issue, but I'm still unable to display the top-left search box.
Could anyone please tell me which directories I should have 'tpl_search_header.php' - currently it is in: (WHERE cherry_zen is CUSTOM folder)
includes/templates/cherry_zen/sideboxes/
includes/templates/template_default/sideboxes/
Hi Jet,
I downloaded and use your template and installed the Apple Zen flyout menus and it works awesome. I am very happy with it. My site is in the final stages before it goes live. Can you help me out with some minor changes before it goes live?
http://www.720moto.com/Store/
A couple of things I need to clean up my site.
1. I turned off EZ-Pages for the header but it still shows up.
2. On the upper right corner of my webpage is a HOME|LOGIN links. I would like to change them to a red color so they don't blend in with the header.
3. When you hover your mouse on the categories the color turns green. Can the color be changed and if so how do I make the change?
I would like your opinion on my site so far and if there are any suggestions or tweaks that will make it better.
Thanks
I'm not able to proceed with the original includes/templates/cherry_zen/templates/tpl_modules_main_product_image.php because it needed to be modified for Faul Slimbox, which is what started my issues in the first place as I kept modifying and remodifying to the point where the site broke. I have attempted numerous merges of the Cherry Zen & Slimbox tpl_modules_main_product_image.php but with zero success.
My problem is the larger image link beneath the main image on the product page and the box that contains the main image itself. If you look at mine, you'll see that it is just a tad too far south and the box sides are too wide. I'm hoping that other folks who have Slimbox installed along with Cherry Zen will share with me their modified tpl_modules_main_product_image.php or other solutions to this problem.
Thanks!
Here's my attempt at a merge. Since I'm not using slimbox, I can't test. Please upload this one, and if you still have issues, leave it up, and let me view the page with this file in action.
PHP Code:
<?php
/**
* Module Template
*
* @package templateSystem
* @copyright Copyright 2007 FUAL
* @copyright Portions 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 2007-12-04 btyler $
*/
?>
<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>
<div id="productImage" class="centeredContent back">
<!-- bof Zen Slimbox v0.1 btyler 2007-12-04 merged for CherryZen by jettrue 2008-07-12 -->
<?php
if( FUAL_SLIMBOX == 'true' || ZEN_LIGHTBOX_STATUS == 'true' ) {
// Set the title
if ( $current_page_base == 'product_reviews' ) {
$fual_slimbox_title = htmlentities($review->fields['products_name'],ENT_QUOTES);
} else {
$fual_slimbox_title = htmlentities($products_name,ENT_QUOTES);
}
// Get the href for the large image
$fual_slimbox_href = zen_lightbox($products_image_large, $fual_slimbox_title, LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);
$fual_slimbox_a = '<a href="' . $fual_slimbox_href . '" rel="lightbox[gallery]" title="' . $fual_slimbox_title . '">';
// Get the img element for this product.
$fual_slimbox_image = zen_image($products_image_medium, $fual_slimbox_title, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT);
// Test remote images to simulate slow loading for local development
//$fual_slimbox_image = '<img src="http://demos.mootools.net/demos/DomReadyVS.Load/moo.png" width="150px" height="150px;" alt="test" />';
// Note if you want to test a slow DOM load, then in /index.php add sleep(5); (in php brackets) just before the final </html>
// This will make the DOM take an extra 5 seconds to load, which simulates dialup (what a cool feature)
$fualSlimboxContent = "";
if( ZEN_LIGHTBOX_STATUS == 'true' ) {
$fualNervousSwitch = 0;
} else {
$fualNervousSwitch = FUAL_SLIMBOX_NERVOUS;
}
switch( $fualNervousSwitch ) {
case 2:
$fualSlimboxContent .= '<div id="productMainImage">';
break;
case 1:
$fualSlimboxContent .= '<div id="productMainImage">';
break;
case 0:
default:
$fualSlimboxContent .= '<div id="productMainImage">';
}
$fualSlimboxContent .= $fual_slimbox_a . $fual_slimbox_image . '</div>';
// Putting the text link together with the image is nasty!
$fualSlimboxContent .= '<br class="clearBoth" />';
$fualSlimboxContent .= '<span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
?>
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo $fualSlimboxContent; ?>' );
//--></script>
<noscript>
<?php
// If they can't be bothered to get a decent browser or turn js on then they only deserve the default behaviour.
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>
<?php
} else {
?>
<!-- bof Zen Slimbox v0.1 btyler 2007-12-04 -->
<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>
<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>
<?php } ?>
</div>
Beautiful! Thanks Jade. In IE the larger image text is altered with mouse-over but is not an active link. However, the main image is. In FF both are active.
Thanks for taking care of that - I know that there are quite a few Cherry Zen/Slimbox users out there who will appreciate the effort.
Does the IE larger image link work on my test site?
http://www.cherryzen.jadetrue.com
I've tried to weave my way through this thread looking for the answer but....... I haven't had any luck getting rid of the default search button in my sidebox. I want to use a custom search button. Can anyone point me in the right direction? BTW - my custom search button shows up in the default template. :cry:
Could anyone kindly help me with this please -
Here is login page of my website
http://flyye.com.au/store/index.php?main_page=login
It shows nicely in FF, However it doesn't disply correctly in IE7 (i haven't tried IE6). Everything is squeezed into the right hand side. I've no idea why it like this. I'm using zen cart 1.38a
Thank you for any advice in advance!!
Oops, it seems not correct in FF either, missing both side boxes
Hmmm
Can anybody help me at all. I have installed this fine mod but during the course of the day's other mods on the site I seem to have cocked up the nice drop shadows for the products images around the site. Now they appear to be 'detatched' from the images themselves. :(
Anybody suggest a quick fix (yeah I know.... backup backup backup)??
Mant thanks:
http://www.g18.biz/order
Rob
Thanks for the quick reply....
Errrrrrr.... I do not have this file or indeed is it in the mod download.
I do have a similarly named file: tpl_modules_main_product_image.php. Is that near enough???
:(
Rob
Actually it is that file and thanks very much you have sorted it.
Appreciate it and thanks for a simply brilliant mod. More of these please!!!!
Rob
Hi Jettrue,
I'm trying to remove the grey bacground for the side boxes on the fly. I'm using this tutorial:https://www.zen-cart.com/tutorials/i...hp?article=233
with this code (in includes/templates/template_default/common/tpl_main_page)
if ($this_is_home_page) {
$flag_disable_left = true;
}
to disable the sideboxes on specific pages. Is there a way that I can disable the background on specific pages and enlarge the central column as well?
Thanks
Suekay
My Firefox just updated.
Now my site looks awful.
Can anyone else see this www.sonicdvd.co.uk there is no template it looks like i am looking at the site on my mobile phone!
It was fine earlier.
I checked in safar and IE and its fine.
I am totally confused!
Around the same timetoday i installed PHP List (mailing list program) on the sever, in a different directory from zen cart using fantastico (i also installed zen cart using fantastico). Could this be what made the problem... but then why would it only affect how my site looks in Firefox only. I tried renaming the fantastico install text files that get put on the server.
I am totally baffled by this. The firfox is now version 2.0.0.16 and its makes chery zen look crap .
I changed back to the standard template to test and it works OK with the standard template
Are you using the very latest update for Firefox (it updated itself an hour or so ago).
If you update to the latest firefox is it still looking OK?
With firefox portable latest update its fine. But with latest update for regular Firefox 2.0.0.16 its awful. The cher zen demo site still looks OK for me though.
I will have a look on my friends computer tomorrow and report back.
Hmm
Well, my PC version of FF is this:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
Good luck!
I'm using Firefox 3.0, and on all previous versions of Firefox, my test site: http://cherryzen.jadetrue.com has looked fine.
Hello everyone!
I just installed the Cherry Zen on my new Zen Cart instalation and I am having the same problem. I have already deleted the lines in the stylesheet.ccs, but it did not resolve the problem at all, still all squeezed to the right column from the top of the page.
http://new.right-on.com.mx/index.php?main_page=login
Any suggestions? Thanks in advance.
Hi,
I have half answered my question by finding this code on another posting to make the central column of the home page (only) the same width as the site:
#indexHomeBody .centerColumn {
float:left!important;
margin: 50px 0 5px -150px;
width:165%!important;
}
#indexHomeBody .navColumnTwo {display:none;}
#indexHomeBody .navColumnOne {display:none;}
Could I use some css to remove the grey side box backgrounds as well?
Thanks for any help you can give
Hi!
What's the easiest way of removing the RHS column from the main page only.
I have an image (it was a table) that is 700 px wide and if the customer resolution is 1024 then it goes into the RHS column. I can't really make the promo image smaller so my only option I think is to remove the RHS column.
Sample: http://www.thrivingstores.com/au_store
(It will probably look OK unless your resolution is 1024x)
Thanks
Ernie
where did you that bottom bottom box? Customers who bought this product also purchased..." I could use on my site.
Quote:
Its there by default.
If you havent got many sales in your cart you wont see it.
You can put some sales in but not go through to checkout, in order for zen to see which products go together.