Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / Custom header issues

Custom header issues

Started by barendfaber on 20 Aug 2012, 10:26 AM · Views: 861

Results 1 to 8 of 8
20 Aug 2012, 10:26 AM
#1
barendfaber avatar

barendfaber

Zen Follower

Join Date:
Apr 2010
Posts:
263
Plugin Contributions:
0

Custom header issues

Hi,

I hope someone can help me. I have created a bit of a bespoke header, please see https://www.dragons.digi-blue.co.uk, using version 1.3.9 h.

I have added this code in one of the divs:

<li><img src="includes/templates/custom/images/headercart.png" class="cart-image" alt="the shopping cart" /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?><? echo $_SESSION['cart']->count_contents();?> ITEM(S)</a></li> <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>

I have removed the bit of code that shows the price in the relevant currency. However it seems I have a dot at the front and a dot at the back, and am not sure how I can remove these? Can someone please help?

20 Aug 2012, 11:57 AM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Custom header issues

Are you sure that dot isn't an image? I can't find it in the page code as rendered.

Rob

Breakfast: the most important donut of the day.

20 Aug 2012, 12:03 PM
#3
barendfaber avatar

barendfaber

Zen Follower

Join Date:
Apr 2010
Posts:
263
Plugin Contributions:
0

Re: Custom header issues

Hi Rob,

Thanks for the reply. I have checked includes/languages/english/custom/header.php, I have referenced pictures for the top menu and checkout, but there does not seem to be any references to any other pictures. Could this be in a different file?

20 Aug 2012, 12:04 PM
#4
barendfaber avatar

barendfaber

Zen Follower

Join Date:
Apr 2010
Posts:
263
Plugin Contributions:
0

Re: Custom header issues

This si the original code I took from another template and stripped out what I didn't want:

<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="includes/templates/all_business/images/cart.jpg" class="cart-image" alt="the shopping cart" /><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> </div>
20 Aug 2012, 1:22 PM
#6
barendfaber avatar

barendfaber

Zen Follower

Join Date:
Apr 2010
Posts:
263
Plugin Contributions:
0

Re: Custom header issues

Thanks keneso! This is my first attempt to really customise Zen Cart, I still do fall but now I know for future! This resolved the issue.

20 Aug 2012, 1:40 PM
#8
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Custom header issues

keneso:

They are the list dots
I knew that (somewhere in the back of my mind.) :blush:

Rob

Breakfast: the most important donut of the day.