Please disregard my post regarding the sideboxes.
I have one important question though, if possible, how could I make the shopping cart image on the "top bar" be an image link? I want it to link to the cart page.
Thx
Please disregard my post regarding the sideboxes.
I have one important question though, if possible, how could I make the shopping cart image on the "top bar" be an image link? I want it to link to the cart page.
Thx
not sure how to link the actual image, but you can link the items/dollar amount line. post is http://www.zen-cart.com/forum/showpo...&postcount=513. basically, you are adding the following line of code:
<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>">
so, it would look like this:
<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();?> item(s) - <? echo $currencies->format($_SESSION['cart']->show_total());?></a></div>
instead of this:
<div id="cart_header" class="topBox">Shopping Cart<br /><? echo $_SESSION['cart']->count_contents();?> item(s) - <? echo $currencies->format($_SESSION['cart']->show_total());?></div>
file (tpl_header.php) is located at Includes > Templates > YOUR TEMPLATE > Common
Try this to link the image and the contents text:
<div id="cart_header" class="topBox"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"></a><aShopping Cart<br /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><? echo $_SESSION['cart']->count_contents();?> item(s) - <? echo $currencies->format($_SESSION['cart']->show_total());?></a></div>
Add this to your stylesheet:
#cart_header a:link, #cart_header a:visited{
display:block;
height:30px;
width:50px;
margin-right:.4em;
}
You'll possible need to adjust #cart_header in your stylesheet as well.
If this doesn't link the image, don't give up, search for the link in the header and apply the proper styles to the link. The link is in the code, invisible to your eyes so like I said you may have to search for it.
Maybe 5h can give it a shot on NothingButTennis.
I don't know what I was thinking when I posted this ... but it should be:
Try this to link the image and the contents text:
Add this to your stylesheet:Code:<div id="cart_header" class="topBox"><a id="carth_link" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"></a>Shopping Cart<br /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><? echo $_SESSION['cart']->count_contents();?> item(s) - <? echo $currencies->format($_SESSION['cart']->show_total());?></a></div>
You'll possibly need to adjust #cart_header in your stylesheet as well. If that's the case, deplete the padding within #cart_header, then apply some right margin to the #carth_link style you just right. I've touched it with a simple margin already.Code:#carth_link{ display:block; height:30px; width:50px; margin-right:.4em; }
Sorry All, I've same problem with sidebox if I use opera browser, the same as Berserker's problem in firefox. I think it would be more excelent if these theme can give nice view in every browser that users used.
how to fix this problem???
I attached a sidebox's image that used in opera.
Regards
fireolg
There's a fix for this in the thread.
http://www.zen-cart.com/forum/showpo...&postcount=441
can someone tell me why there are spacing issues when using bullets in the product description? without bullets, the text lines up fine. with bullets, the bullets end up overlapping the product image. see attachment.
Bookmarks