Re: Add a column to the shopping cart page
Here is how I add the model number to the item name if it will help.
Code:
In your templates > templates > tpl_shopping_cart_default.php
Find this
<td class="cartProductDisplay">
<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
<br class="clearBoth" />
And replace with this
<td class="cartProductDisplay">
<a href="<?php echo $product['linkProductsName']; ?>"><div id="cartImage" class="back"><?php echo $product['productsImage']; ?></div><div id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?><br />Model #: <br /><?php echo zen_products_lookup($product['id'], 'products_model'); ?></div></a>
<br class="clearBoth" />
It will show the model number along with the name
This is probably the code you need
Model #: <br /><?php echo zen_products_lookup($product['id'], 'products_model'); ?>
~~~~~~~~~~~~~~~~~~~~~~~~~~
Play with it long enough and you will break it.