I just submitted a new, updated version of the template package.
* I updated the AddThis code on the product info page to include the Pinterest Pin It button
* I updated the product info page layout for a more custom look. The price, attributes, and add to cart are in their own box next to the product image with the description, AddThis, product details, etc. below
* The new, updated html readme file has been added
* I added social media icons for youtube, pinterest, google plus, and your blog in the footer
* I added tabbed home page centerbox content for new products, featured products, and specials
See the readme file from the new package for information on changed files and new files added.
Thanks,
Anne
Hi Anne... great templates... we really love them.
Yesterday I picked up an interesting issue...
On all_business, we applied a hex colour to #headerWrapper
#headerWrapper {background: #000;}
And the black extended all the way through the main content area too...
I then did a COUNT of DIV tags and found:-
In your tpl_header.php there are:
ELEVEN opening <div tags
TEN closing </div> tags
HOWEVER... when I slipped in a </div> into the header, it seemed to close off the headerWrapper, and put the black exclusively in the header area:
ORIGINAL CODE in tpl_header.php (Around line 100)
Code:<br class="clearBoth" /> <!--eof-branding display-->
MY "STICKING PLASTER" (Around line 100)
Code:<br class="clearBoth" /> <!--eof-branding display--> </div>
Am I missing something? Is there supposed to be another closing </div> in the "body" areas that I somehow don't have? I am thinking a mod addition might be the culprit... but we did the styling on a completely "virgin" install of ZC1.5, then applied all_business, then tried the headerWrapper styling... no added mods...
Your expertise and comments would be most welcome.
20 years a Zencart User
Can you post a link to the site so that I can take a look.
I just applied the:
to my demo of the all business using firebug and did not see the problem:Code:#headerWrapper {background: #000;}
http://www.picaflor-azul.com/free-de...d=all_business
The demo has the latest version of the template 1.5 installed (upate is pending approval here but available for download on my site). with no add ons except the template switcher.
Thanks,
Anne
Last edited by picaflor-azul; 5 Jul 2012 at 02:05 PM.
Unfortunately, for reasons of a non-disclosure and confidentiality agreement with the client, I can't post the link...
But what I will do is see if I can replicate the issue on a clean install of 1.5 with JUST the all_business template installed, and if it re-appears, I'll PM you that link...
20 years a Zencart User
See this tpl_header.php file from the most recent version of the template package. I belive that all of the div and /div tags match up. I have commented them in the file:
I removed the other comments for clarity.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 $ */ ?> <?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 { } ?> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <!--bof headerWrapper--><div id="headerWrapper"> <!--bof navMainWrapper--><div id="navMainWrapper"> <!--bof navMain--><div id="navMain"> <ul class="back"> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a> | </li> <?php if ($_SESSION['customer_id']) { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> | </li> <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | </li> <?php } else { if (STORE_STATUS == '0') { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a> | </li> <?php } } ?> <li><img src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.HEADER_ICON_CART ?>" alt="cart icon" class="cart-icon" /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?> - <? echo $_SESSION['cart']->count_contents();?> item(s) - <? echo $currencies->format($_SESSION['cart']->show_total());?></a> | </li> <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li> <?php if ($_SESSION['cart']->count_contents() != 0) { ?> <?php }?> </ul> <!--eof navMain--></div> <br class="clearBoth" /> <!--eof navMainWrapper--></div> <!--bof navMainSearch--><div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?> <!--eof navMainSearch--></div> <!--bof logoWrapper--><div id="logoWrapper"> <!--bof logo--><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>'; ?> <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?> <!--bof taglineWrapper--><div id="taglineWrapper"> <?php if (HEADER_SALES_TEXT != '') { ?> <!--bof tagline--><div id="tagline"><?php echo HEADER_SALES_TEXT;?> <!--eof tagline--></div> <!--eof taglineWrapper--></div> <?php } ?> <?php if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) { if ($banner->RecordCount() > 0) { ?> <!--bof bannerTwo--><div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?> <!--eof bannerTwo--></div> <?php } } ?> <!--eof logo--></div> <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?> <!--eof logoWrapper--></div> <br class="clearBoth" /> <!--bof header-lan-curr--><div id="header-lan-curr"> <?php require(DIR_WS_MODULES . 'sideboxes/languages_header.php'); ?> <?php require(DIR_WS_MODULES . 'sideboxes/currencies_header.php'); ?> <!--bof clearBoth--><div class="clearBoth"> <!--eof clearBoth--></div> <!--eof header-lan-curr--></div> <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?> <?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 headerWrapper--></div> <?php } ?>
Thanks,
Anne
Last edited by picaflor-azul; 6 Jul 2012 at 06:34 PM.
Hi Anne
Thanks for taking time on this...
I installed a totally CLEAN ZC1.5, then put in the all_business template - and like you say, it DOES NOT give the #headerWrapper behaviour I am experiencing on the other site.
It must therefore be something we did internally here... I will ask my team to look into it, and tell me how they are installing the template and ZC...
I appreciate your attention to this... and if/when I find the reason for the behaviour, I'll come back to this thread to tell others what caused it and why... If they have the same issue, they will be able to correct it.
20 years a Zencart User
hi, can any one please let me how to make the "new, feature, special" tabs to automatically show products on the main page like in the demo site? i have tried Configuration -> Index Listing and turn everything other than "0". but it didn't work. here is my site: http://rbteaimports.com/ .
also, can any one please tell me how to make the products in the categories to show in grid format instead of column format? i have installed the sql patch, but not sure what to do from there. thank you so much!
Hi, i finally found the answer for my first problem. it is in here http://www.zen-cart.com/showthread.p...72#post1134272 . i am still looking for the answer for my second problem.
anyway, thank you so much for all these beautiful templates, Anne!
Bookmarks