
Originally Posted by
BlessIsaacola
I am not sure that we are talking about the same thing. If you go to the other thread, you will notice that this issue was discussed and there is a new file released to fix it as well as the code pasted.
Thanks again for your continuous support! After reading all threads and your codes, I finally added the dot line to both recently viewed mod and best seller thumbnail mod.
Just my coding is a little weird, the padding codes in the td class doesn't seem to work, I have to add another class at div level to make the padding works. Really no idea. Anyway, as long as it is working, I am happy with that. For your info, hereunder is my codes and tpl:
PHP 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 >' . "\n";
$content .= '<table cellpadding=0 cellspacing=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><td class="recent-products-border"><div class="recent-products-div"><a href="' . $link . '">' . zen_get_products_image($recent_product, SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2) . '</a></div></td><td class="recent-products-border"><div class="recent-products-div"><a href="' . $link . '">' . zen_get_products_name($recent_product, $_SESSION['languages_id']) . '</a></div><div class="recent-products-price">' . zen_get_products_display_price($recent_product) . '</div></td>' . "\n" .
'</tr>';
}
$content .= '</table>' . "\n";
$content .= '</div>' . "\n";
$content .= '</div>';
?>
Code:
.recent-products-border {
border-bottom: 1px dotted Silver;
font-size: 0.9em;
}
.recent-products-div
{
padding-top: 3px;
padding-right: 0px;
padding-bottom: 3px;
padding-left: 3px;
}
.recent-products-price
{
text-align: right;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 3px;
padding-left: 0px;
}
Please let me know if you have any comment about it. Thanks again!
My site again:
http://www.locomolife.com/store/