Thankyou for replying.
I am editing tpl_blank_sidebox.php in macromedia dreamweaver. My file is edited as below and i keep getting an unexpected t_string on line 108.
PHP Code:
<?php
/**
* blank sidebox - allows a blank sidebox to be added to your site
*
* @package templateSystem
* @copyright 2007 Kuroi Web Design
* @copyright Portions Copyright 2003-2007 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: blank_sidebox.php 2007-05-26 kuroi $
*/
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
// Replace the text and HTML tags between the apostophes on lines 19 and 20.
// Use as many or as few lines using this model as you need for your custom content.
// If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
// If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
$content .= '';
$content .= '
<head>
<style type="text/css">
body {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
}
h1 {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:16px;
}
p {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
}
#sidecont{
width:190px;
margin:0px;
}
#cathed{
height:25px;
margin:auto;
background:url(http://computech-pcs.co.uk/images/t6.gif);
width:190px;
}
#splitter {
border-left:1px solid #CCCCCC;
border-right:1px solid #CCCCCC;
height:5px;
}
#catcont {
border-left:1px solid #CCCCCC;
border-right:1px solid #CCCCCC;
}
#footer {
border-left:1px solid #CCCCCC;
border-right:1px solid #CCCCCC;
background-color:#336699;
height:2px;
}
#contholder {
margin:auto;
width:150px;
border-bottom:1px dashed #CCCCCC;
padding:5px;
}
#cattitle {
margin-top:8px;
border-left:1px solid #CCCCCC;
border-right:1px solid #CCCCCC;
}
#cathed2{
height:25px;
margin:auto;
background:url(http://computech-pcs.co.uk/images/t6.gif);
width:190px;
}
.count {
color:#FF6600;
}
</style>
</head>
<body>
<div id="sidecont">
<div id="cathed"></div>
<div id="splitter"></div>
<div id="catcont">
<div id="contholder"><table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<?php
$header_cart = "<div id='header_cart'>";
if ($_SESSION['cart']->count_contents() > 0) {
$header_cart .= '<ul>' . "n";
$products = $_SESSION['cart']->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
$header_cart .= '<li>';
if (($_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
$header_cart .= '<span class="cartNewItem">';
} else {
$header_cart .= '<span class="cartOldItem">';
}
$header_cart .= $products[$i]['quantity'] . BOX_SHOPPING_CART_DIVIDER . '</span><a class="font_green" href="'
. zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']) . '">';
if (($_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
$header_cart .= '<span class="cartNewItem">';
} else {
$header_cart .= '<span class="cartOldItem">';
}
$header_cart .= $products[$i]['name'] . '</span></a></li>' . "n";
if (($_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
$_SESSION['new_products_id_in_cart'] = '';
}
}
$header_cart .= '</ul>' . "n";
} else {
$header_cart .= '<div id="cartBoxEmpty">' . BOX_SHOPPING_CART_EMPTY . '</div>';
}
if ($_SESSION['cart']->count_contents() > 0) {
$header_cart .= '<hr />';
$header_cart .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
// $header_cart .= '<br class="clearBoth" />';
}
$header_cart .= "</div>";
echo $header_cart; ?>
</td>
</tr>
</table></div>
</div>
<div id="splitter"></div>
<div id="footer"></div>
</div>
</body>
</html>
';
$content .= '</div>';
?>
Bookmarks