
Originally Posted by
chris32882
I believe its the latest version...
scrolling_bestsellers_sidebox_1-0.rar is what I downloaded
Code:
<?php
/**
* Scrolling Best Sellers Side Box Template
* Updated by dezina.com - December 2008
* @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 centeredContent">';
for ($i=1; $i<=sizeof($bestsellers_list); $i++) {
$rp .= '<br /><center><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . '<img class="bestsellers_thumbnail" src="images/' . $bestsellers_list[$i]['image'] . '">' . '<br>' .zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></center><br /><br />' . "\n";
}
$total = $i;
if ($total > 1) { //if more than one special exists in the db then scrolling begins
$content .= '<MARQUEE style="position:relative" behavior= "scroll" align= "center" direction= "up" width="140" height="160" scrollamount= "2" scrolldelay= "5" onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>' . $rp .'</MARQUEE>';
}
elseif ($total == 1) { // If only one special exists in the db then the specials box will remain static
$content .= $rp;
}
else { // If there are no bestsellers then this text is displayed
$content .= "No bestsellers this month!";
}
$content .= '</div>';
?>
Above is code from my own amended tpl_best_sellers.php