Re: Cherry Zen Template Support Thread
Quote:
Originally Posted by
manton
@Mark228 Sorry, this is the correct:
HTML Code:
<img src="http://www.yourwebsite.com/store/images/yourimage.gif" alt="yourimagename" />
Hi thanks for the reply. I know the html for inserting images, i just haven't a clue where I insert the html code as there are so many different files full of CSS code that I don't understand lol. Here is what it says in the file you said to edit:
HTML Code:
<?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 4813 2006-10-23 02:13:53Z drbyte $
*/
?>
<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>
<!-- 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"><tr><td>
<div id="headerWrapper">
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMainSearch">
<?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
</div>
<div id="navMain">
<ul>
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><span><?php echo HEADER_TITLE_CATALOG; ?></span></a></li>
<?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_LOGOFF; ?></span></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_MY_ACCOUNT; ?></span></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_LOGIN; ?></span></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_MY_ACCOUNT; ?></span></a></li>
<?php } } ?>
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><span><?php echo HEADER_TITLE_CART_CONTENTS; ?></span></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><span class="last"><?php echo HEADER_TITLE_CHECKOUT; ?></span></a></li>
</ul>
</div>
</div>
<!--eof-navigation display-->
<!--bof-branding display-->
<div id="logoWrapper" class="clearfix">
<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) . '</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>
<!--eof-branding display-->
<!--eof-header logo and navigation display-->
<!--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-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-->
</div>
<?php } ?>
Where would I put the image src html in all that please?
Re: Cherry Zen Template Support Thread
Hi Mark,
You have already altered this page, well not the page itself but the variable that exists in this page. If you check my previous post, I suggest that around line 77 of that page you will see the <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>.
The part that needs to be changed is <?php echo HEADER_SALES_TEXT;?>.
Donīt modify anything directly in this page! You only have to find where the HEADER_SALES_TEXT variable is defined.
Go to includes/languages/your_language/header.php
There you may define what the logo image will be and you may as well alter the menu text.
Wherever you see variables you have to find where the variables are defined and simply alter them as you like. In my opinion, you have to use your edit/find option of your html editor a lot :wink:
Re: Cherry Zen Template Support Thread
Ok... There's probably an answer here somewhere but unfortunatly I got bored after page 100 or so... So hopefully someone will have an answer to my issue.
I've installed Cherry zen into my cart and have selected it as the default template. There appears to be an issue with the sidebox formating. you can view the site by going to:
www.christinafrench.com/sienna
you will notice that the side boxes are not in the correct places and that there appears to be 3 search boxes, where I think there should be only one in the top left corner.
Can someone please take a look and suggest a solution to this issue. i've checked the settings etc in the admin of the cart and everything appears to be correct. I do have another template installed which is Classic XHTML... Could this be causing the issue and should I Delete the template?
i've set my monitor resolution to 1024 x 768 which should be more than adequate for this template.
Thanks in advancve for your help,
Andy
Re: Cherry Zen Template Support Thread
Quote:
Originally Posted by
bettsaj
Ok... There's probably an answer here somewhere but unfortunatly I got bored after page 100 or so... So hopefully someone will have an answer to my issue.
I've installed Cherry zen into my cart and have selected it as the default template. There appears to be an issue with the sidebox formating. you can view the site by going to:
www.christinafrench.com/sienna
you will notice that the side boxes are not in the correct places and that there appears to be 3 search boxes, where I think there should be only one in the top left corner.
Can someone please take a look and suggest a solution to this issue. i've checked the settings etc in the admin of the cart and everything appears to be correct. I do have another template installed which is Classic XHTML... Could this be causing the issue and should I Delete the template?
i've set my monitor resolution to 1024 x 768 which should be more than adequate for this template.
Thanks in advancve for your help,
Andy
The right search box is on because you need to turn it off under "Tools", "Layout Boxes Controller". The left search box, however, looks like it was added there manually, you perhaps added it in your other template, and probably put the changes in your template_default folder instead of your old template folder. I would open up "Tools", "Developers Tool Kit", and search all files (I always use the bottom search box) for quick_find_header so you can see where you added it. You need to remove this whole chunk:
Code:
<form name="quick_find_header" action="http://christinafrench.com/sienna/index.php?main_page=advanced_search_result" method="get"><input type="hidden" name="main_page" value="advanced_search_result" /><input type="hidden" name="search_in_description" value="1" /><input type="search" name="keyword" id="searchTop" size="20" maxlength="30" value="Search" onfocus="if (this.value == 'Search') this.value = '';" onblur="if (this.value == '') this.value = 'Search';" /></form>
As for the width wierdness, as stated in the readme, you need to set BOTH sidebox width's to 150px (it should be changed in 4 places) under "Configuration", "Layout Settings".
Re: Cherry Zen Template Support Thread
Well I searched for awhile, hope someone has run into this already that can help. I have been using this template for a little while now. Its great. One thing I want to do is remove the Quantity from the products list. I have go into New Listing, Feature Listing, All Listings and set the Show quantity to 0=off and I also went into product types and edit the layout to Show Quantity 0=off but if I click on a category it still shows the quantity, anyone know where to turn this off?
Here is my site, you'll see right below the More Info link it shows the quantity
http://www.gettoughfightwear.com/men...rts-c-2_3.html
Thanks for your help
Re: Cherry Zen Template Support Thread
Quote:
Originally Posted by
jettrue
The right search box is on because you need to turn it off under "Tools", "Layout Boxes Controller". The left search box, however, looks like it was added there manually, you perhaps added it in your other template, and probably put the changes in your template_default folder instead of your old template folder. I would open up "Tools", "Developers Tool Kit", and search all files (I always use the bottom search box) for
quick_find_header so you can see where you added it. You need to remove this whole chunk:
Code:
<form name="quick_find_header" action="http://christinafrench.com/sienna/index.php?main_page=advanced_search_result" method="get"><input type="hidden" name="main_page" value="advanced_search_result" /><input type="hidden" name="search_in_description" value="1" /><input type="search" name="keyword" id="searchTop" size="20" maxlength="30" value="Search" onfocus="if (this.value == 'Search') this.value = '';" onblur="if (this.value == '') this.value = 'Search';" /></form>
As for the width wierdness, as stated in the readme, you need to set BOTH sidebox width's to 150px (it should be changed in 4 places) under "Configuration", "Layout Settings".
Thanks for your reply. I decided that rather than try and find the individual files from the other template, I deleted the whols thing from my server and dropped all the tables, started a fresh, installed zen cart and then ONLY uploaded cherry zen... Guess what.. It looks lovely.
Now my second question. How do I change the name of the page titles for each page? I want to get rid of the "zen cart: The art of E-Commerce" legend from the title. I am however leaving the Powered by zen Cart at the bottom of each page obviously.
i know how to do it with html pages but am quite lost with php pages.
Thanks again in advance.
Andy
Re: Cherry Zen Template Support Thread
Quote:
Originally Posted by
manton
Hi Mark,
You have already altered this page, well not the page itself but the variable that exists in this page. If you check my previous post, I suggest that around line 77 of that page you will see the <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>.
The part that needs to be changed is <?php echo HEADER_SALES_TEXT;?>.
Donīt modify anything directly in this page! You only have to find where the HEADER_SALES_TEXT variable is defined.
Go to includes/languages/your_language/header.php
There you may define what the logo image will be and you may as well alter the menu text.
Wherever you see variables you have to find where the variables are defined and simply alter them as you like. In my opinion, you have to use your edit/find option of your html editor a lot :wink:
Hi again... ok I'm still stuck lol! I went to the header.php and did the following:
HTML Code:
<?php
/**
* @package languageDefines
* @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: header.php 2940 2006-02-02 04:29:05Z drbyte $
*/
// header text in includes/header.php
define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account');
define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart');
define('HEADER_TITLE_CHECKOUT', 'Checkout');
define('HEADER_TITLE_TOP', 'Top');
define('HEADER_TITLE_CATALOG', 'Home');
define('HEADER_TITLE_LOGOFF', 'Log Out');
define('HEADER_TITLE_LOGIN', 'Log In');
// added defines for header alt and text
define('HEADER_ALT_TEXT', 'The Goldmine');
define('HEADER_SALES_TEXT', '<img src=http://thegoldmine.co.uk/includes/templates/cherry_zen/images/goldmine.jpg'>);
define('HEADER_LOGO_WIDTH', ' ');
define('HEADER_LOGO_HEIGHT', ' ');
define('HEADER_LOGO_IMAGE', 'logo.gif');
// header Search Button/Box Search Button
define('HEADER_SEARCH_BUTTON','Search');
define('HEADER_SEARCH_DEFAULT_TEXT', 'Search');
?>
Which just made the site not load at all, so I've deleted the img src code again. Is this where I'm supposed to be adding it? Sorry to be a pain!
I don't want to change the logo.gif, I just want to put that lettering jpg to the right of it somehow...
Re: Cherry Zen Template Support Thread
Quote:
Originally Posted by
Mark228
Hi again... ok I'm still stuck lol! I went to the header.php and did the following:
HTML Code:
<?php
/**
* @package languageDefines
* @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: header.php 2940 2006-02-02 04:29:05Z drbyte $
*/
// header text in includes/header.php
define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account');
define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart');
define('HEADER_TITLE_CHECKOUT', 'Checkout');
define('HEADER_TITLE_TOP', 'Top');
define('HEADER_TITLE_CATALOG', 'Home');
define('HEADER_TITLE_LOGOFF', 'Log Out');
define('HEADER_TITLE_LOGIN', 'Log In');
// added defines for header alt and text
define('HEADER_ALT_TEXT', 'The Goldmine');
define('HEADER_SALES_TEXT', '<img src=http://thegoldmine.co.uk/includes/templates/cherry_zen/images/goldmine.jpg'>);
define('HEADER_LOGO_WIDTH', ' ');
define('HEADER_LOGO_HEIGHT', ' ');
define('HEADER_LOGO_IMAGE', 'logo.gif');
// header Search Button/Box Search Button
define('HEADER_SEARCH_BUTTON','Search');
define('HEADER_SEARCH_DEFAULT_TEXT', 'Search');
?>
Which just made the site not load at all, so I've deleted the img src code again. Is this where I'm supposed to be adding it? Sorry to be a pain!
define('HEADER_SALES_TEXT', '<img src=http://thegoldmine.co.uk/includes/templates/cherry_zen/images/goldmine.jpg
'>);
I don't want to change the logo.gif, I just want to put that lettering jpg to the right of it somehow...
You have to be good at looking at details when changing the language files. Look closely at where you put your closing single quote after the image you added.
define('HEADER_SALES_TEXT', '<img src=http://thegoldmine.co.uk/includes/templates/cherry_zen/images/goldmine.jpg'>);
Re: Cherry Zen Template Support Thread
please assist me in this .. i had posted a request earlier... i have a problem on my "checkout confirmation" page. my sideboxes are all screwed up in IE and Firefox as well. please someone help me out with this so i can convert customers to placing orders rather than having abandoned carts. thanks for your assistance with this.
www.rskcoulterproducts.com/confirmation_page.php
Re: Cherry Zen Template Support Thread
Hi,
I've tried checking the general Zen Cart support section with no luck, hopefully someone here will point me in the correct direction.
I've installed Cherry Zen and want to replace the main e-start-book.gif image with a centered Flash animation. Now i know how to embed the Flash.... That's not a problem, but I can't find how to centre it in the main page. Is it altered via a style sheet or is there a php file that needs to have a float:left tag removed?
Please help me.... I'm fairly new to php and shopping carts so any help would be much appreciated.
Andy