Dr Byte,
Thanks for the info. I went with shoppingcart_freeship_header_1_2.
It has fixed the problem. I am able to see the shopping cart info in the dropdown menu on all pages. It shows cart total, total items, free shipping info, and a checkout button.
I have been able to remove the free shipping info and add a view cart button. I would like to remove cart total and total items, and add product name (with link), unit cost, product quantity (per item), product image (with link) and subtotal as follows,
Product Name
(quantity) x (unit cost) Image
Subtotal
I have tried plugging in the different components that I want to change to no avail. I have also searched for info on shopping cart variables. I am able to change the layout just fine with divs and css, I just can't figure out how to modify this piece of php.
This is the current code that I am trying to modify, replace or change:
<div id="cartCount">
<?php
if ($cart_count) {
$_SESSION['cart']->get_products();
$basket_total = $_SESSION['cart']->show_total();
echo '<span id="cartTotal">' . CART_HEADER_TOTAL . $currencies->format($basket_total) . '</span>' ;
}
echo ($cart_count? '<a href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '" title="' . CART_HEADER_TITLE . '">':'') . CART_HEADER_IN_CART_PRE . $cart_count . (($cart_count == 1)? CART_HEADER_IN_CART_SINGULAR: CART_HEADER_IN_CART_PLURAL) . ($cart_count? '</a>': '');
?>
</div>
I am trying to incorporate the following code that includes product name, unit cost, product quantity, product image and subtotal. I see that they are coded differently, the code below is from my initial post (modified tpl_shopping_cart_default.php). Where can I find information on this? Is this straight php? I couldn't find what I was looking for in the forum. I may not know what I am looking for (productsName, showFixedQuantityAmount, productsPriceEach, productsImage, cartShowTotal).
<td><div class="header-cart-products-name"><a href="<?php echo $product['linkProductsName']; ?>"><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a></div>
<br />
<div class="header-cart-item-info">
<div class="header-cart-item-count ">
<?php
if ($product['flagShowFixedQuantity']) {
echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
} else {
echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
}
?>
</div>
<div class="header-cart-item-spacer"> x </div>
<div class="header-cart-item-cost"><?php echo $product['productsPriceEach']; ?></div>
</div></td>
<td><a href="<?php echo $product['linkProductsName']; ?>"><span id="header-cartImage"><?php echo $product['productsImage']; ?></span></a></td>
<?php
} // end foreach ($productArray as $product)
?>
<!-- Finished loop through all products /-->
</table>
<div id="header-cart-subtotal"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?></div>
...
Thanks Again!


Reply With Quote
