Hi Lucianman,
this may be a hint on how to acomplish to have ´linked text´in header.
https://www.zen-cart.com/tutorials/i...hp?article=234
regards,
kruna
Hi Lucianman,
this may be a hint on how to acomplish to have ´linked text´in header.
https://www.zen-cart.com/tutorials/i...hp?article=234
regards,
kruna
Hi Kruna,
I was looking at your website and i must say it quite good- all the modifications of the tmplate. Is there any chance you could help me with that login code, i see you've got it on your website at the top. Thats what im after.
will the current template work with the new zencart 1.3.8
Hi Jaskarn,
First of all, sorry I didnt answer earlier, but I was/am quite busy in the last days...
Sure I can help you with the header, but I cant gurantee anything...I am no programmer , no designer, I just followed some logics and was trying, trying and trying out, untill I got it worked somehow, mabye there would have been an easier way, but as I said, my skills are very limited....
First of all, back, up, back up, and backup, the files you will change...
ok, here is what I did...
1. I downloaded the login header from the download section and installed it.
Then I changed the following file includes/templates/MY_TEMPLATE/common/tpl_header.php, this file I am giving gyou doesnt includes the SEARCH in the header, not sure whether you would like this too...
Then in the stylesheet in added the following:<?php
/**
* Acadame 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 2007 iChoze Internet Solutions http://ichoze.com
* @copyright Portions 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) {
?>
<div id="headerWrapper">
<div id="topBarWrap">
<div id="topBar">
<?php require(DIR_WS_MODULES . 'sideboxes/languages_header.php'); ?>
<?php require(DIR_WS_MODULES . 'sideboxes/currencies_header.php'); ?>
<div id="logoWrap">
<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>
<div id="login_header">
<?php require(DIR_WS_MODULES . 'sideboxes/login_header.php'); ?> </div>
<div id="cart_header" class="topBox">Shopping cart<br /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><? echo $_SESSION['cart']->count_contents();?> unidad(es) - <? echo $currencies->format($_SESSION['cart']->show_total());?></a></div>
<br class="clearBoth" /></div>
</div>
<div id="main">
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) {
require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php');
} ?>
</div><br class="clearBoth" />
</div>
</div>
<?php } ?>
to be able to change position.#login_header{
margin: 3.5em 0 0 3em;
float: left;
}
Hope this helps you and let me know if you have more questions or need some help...
regards,
kruna
Hi Kruna, once again thanks for all of that effort you made to help me, i will try the new file as advised.
Thanks,
Jaskarn
Hi Kruna, i have made the changes and now i get this error message when i open my site.
Parse error: syntax error, unexpected T_STRING in /home/pjdhatt/public_html/dtech/store/includes/templates/iC_AcadameV1.2/common/tpl_header.php on line 45
Hi,
To start, i'd like to say great template and great contribution to the community!
I have two questions:
First, I require my customers to register before seeing products and prices. How can I go about completely removing the header for my login/registration page? This includes the logo, red menu bar, and the currencies/languages/shopping cart bar. I tried setting the "hide header" option to "true" in the "Admin - Customer Details" with no luck.
Second question, i'd like to replace the red menu bar (beside the logo) with this css menu bar: http://www.13styles.com/css-menus/style4/ . I don't care about the EZ-pages settings, I can add the links manually by editing the coding. How can i go about doing this?
Thanks!
Hi,
Take a look at my site. You will see a header similar to what you are asking for. Also, I customized my EZPAGE links to be CSS menu tabs (nifty corners). Somewhere in this thread I have instructions on how to do what i did. Obviously you would use your own header, and you can still use the ezpages which make life just a tad more easier if you want to change things around a bit without having to go into the code all the time.
Vicky
I followed your instructions and it worked like a charm, thanks! Your website looks great BTW, the nicest customization of the template I have seen.
Now I just need to know how to hide the header when the customer is not signed in. Basically I just need the iC_AcadameV1.2/common/tpl_header.php to not load unless the customer is logged in. Can anyone help me out with this?
Bookmarks