I didn't like having the MSRP, Our Price and Your Savings all listed in the recently viewed sidebox. I thought that it was unnecessary and made the sidebox too long with all of that extra information. Here's a hack to show just your actual price, I put the "our price" in a span class so you can modify it in your stylesheet. If anyone knows of a better solution please post it!
Replace all of the code in includes/templates/your_template/sideboxes/tpl_recently_viewed.php with this:
The "norm" span class is from the MSRP css code so if you haven't changed it from the original than it should work without modification and will match your main product listing style, but you can change "norm" to another name and add it to your stylesheet as .whatever to modify it to your taste.Code:<?php /** * Side Box Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_best_sellers.php 2982 2006-02-07 07:56:41Z birdbrain $ */ $content = ''; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n"; $content .= '<div class="wrapper">' . "\n"; $content .= '<table cellspacing="0" cellpadding="0">' . "\n"; foreach ($_SESSION['recent_products'] as $recent_product) { $link = zen_href_link(zen_get_info_page($recent_product), 'products_id=' . $recent_product); $content .= '<tr>' . "\n" . '<td><a href="' . $link . '">' . zen_get_products_image($recent_product, '35', '35') . '</a></td>' . "\n" . '<td><div class="recent-products-name"><a href="' . $link . '">' . zen_get_products_name($recent_product, $_SESSION['languages_id']) . '</a></div><div class="recent-products-price">' . '<span class="norm">' . 'Our price ' . '</span>' . '$' . zen_get_products_actual_price($recent_product) . '</div><br /></td>' . "\n" . '</tr>'; } $content .= '</table>' . "\n"; $content .= '</div>' . "\n"; $content .= '</div>'; ?>
Please let me know if you run into any problems and I will see what I can do to help you fix it although I have to say that I am still finding my feet with php so I don't know if I can solve any problems but I'll try my best.
Matt




