Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others
Done, Thanks for help![]()
Last edited by alhakeem2001; 7 May 2008 at 08:45 PM.
I installed the Best Sellers scrolling side box which is pretty much the same as this however the images on the best sellers scrolling box are huge. I did try changing the css as suggested in another thread but It doesn't seem to make any difference.
I installed this mod perfectly and everything looks great so wondered if anyone would know a quick fix for the best sellers scrolling mod.
I've searched the forum and people have had the same problem I've experienced however so far there doesn't seem to be a fix with most people uninstalling.
This is the code from the tpl_best_sellers.php
<?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="rightsideBoxContent">' . "\n";
$content .= '<div class="wrapper">' . "\n" . '<ol>' . "\n";
for ($i=1; $i<=sizeof($bestsellers_list); $i++) {
$rp .= '<li> <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></li>' . "\n";
}
$total = $i;
if ($total > 1) { //if more than one special exists in the db then scrolling begins
$content .= '<MARQUEE behavior= "scroll" align= "center" direction= "up" width="150" height="160"
scrollamount= "1" 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 .= '</ol>' . "\n";
$content .= '</div>' . "\n";
$content .= '</div>';
?>
First time I've needed to use this sidebox for a client and I can't get it to work.
Featured sidebox is on, but no scrolling featured sidebox is visible anywhere, not even in layout boxes controller.
Of course I followed the easiest of install instructions but still cannot get it to work!
"Place this file in your overrides template overrides dir:
includes\templates\nameofyourtemplate\sideboxes\tpl_featured.php"
I have only 4 test products listed as featured but surely as long as there is a minimum 2 it should work?
Did I miss anything else?
Did you place tpl_featured.php in correct folder for template currentlyFirst time I've needed to use this sidebox for a client and I can't get it to work.
Featured sidebox is on, but no scrolling featured sidebox is visible anywhere, not even in layout boxes controller.
Of course I followed the easiest of install instructions but still cannot get it to work!
"Place this file in your overrides template overrides dir:
includes\templates\nameofyourtemplate\sideboxes\tpl_featured.php"
I have only 4 test products listed as featured but surely as long as there is a minimum 2 it should work?
Did I miss anything else?
being used?
In admin, did you set correct number of items to show in featured
sidebox?
Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others
Hey misty, all your suggestions were already sorted. The problem could have been a corrupted file as when I re-uploaded it worked fine.
Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others
Only problem now is that the code doesn't validate ...
Methinks a through-the-night tweaking session lays ahead!
Is this mod compatible with v1.3.8a?
Just want to make sure before I go ahead and give it a shot. The boss likes eye candy, this may be a good solution. I do have Image Handler 2 installed, will this be a problem?
Make regular site and database backups!
Bookmarks