Glenn,
Thanks for the information. I checked for /includes/modules/pages/shopping_cart/main_template_vars.php. There was no main_template_vars.php in that folder. I did find a main_template_vars.php file in the /includes/modules/pages/product info folder. I looked at the code but couldn't figure it out.
Is there some code that can be inserted into your plugin that would display the product name and product image. I am not sure what is needed to call this information. Is this some major php coding? I have been looking into this for a few days now without any luck. I'm sure the information you gave me points me in the right direction, but not being familiar with php, I really have no idea how to get this done. It may be harder than I think.
Can you give me a brief explanation of what needs to be done? I am going to pose the question and code below, if another Zen Cart Guru comes across this post and is able to help.
To see the plugin on my site, visit https://www.4twentee.com. The dropdown menu is in the main nav under Shopping Cart.
Thanks Again,
Jesse
How can I display product name (productsName) and product image (productsImage) in "Shoppingcart/Freeship in Header" plugin?
<?php
/**
* tpl_cart_header.php
* @copyright Copyright 2012 Glenn Herbert
* @copyright Portions Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license <http://www.gnu.org/licenses/> GNU Public License V3.0
* /includes/templates/your_template/templates/tpl_cart_header.php
* Shoppingcart/Freeship in Header - Glenn Herbert (gjh42) - 2012-11-20
*/
$cart_count = $_SESSION['cart']->count_contents();
?>
<div id="cartHeader">
<?php echo ($cart_count? '<a href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . CART_HEADER_TITLE . '</a>':CART_HEADER_TITLE); ?>
<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><br />
' ;
}
echo ($cart_count? '':'') . CART_HEADER_IN_CART_PRE . $cart_count . (($cart_count == 1)? CART_HEADER_IN_CART_SINGULAR: CART_HEADER_IN_CART_PLURAL) . ($cart_count? '': '');
?>
</div>
<?php
if ($cart_count) {
echo '<div class="buttonRow back"><a href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_VIEW_CART, BUTTON_VIEW_CART_ALT) . '</a></div>';
echo '<div class="buttonRow forward"><a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a></div>';
} ?>
</div>