Hi, Inspired by my specials scrolling sidebox I have made the same thing for the whats new sidebox.
This basically takes x amount of new products from the database where x is the value set in maximum values in the admin config section. loads them into and array and then scrolls it using the marquee tag in IE.
There are some configurable options in the page itself:
You can change these to modify how the sidebox is displayed and looks. I created this using 1.3 code and i have not tested on anything below 1.3.Code:$scroll_amount = "1"; // scroll amount $scroll_delay = "5"; // scroll delay $scroll_direction = "up"; // scroll direction (can be up, down, left or right) $scroll_behaviour = "scroll"; // scroll behaviour (can be scroll, alternate or slide) ** Seems to make no diff ** $box_height = "160"; // height of whats new box
Installation is easy just upload tpl_whats_new.php to your template override dir:
/includes/templates/%your_template%/sideboxes
http://www.zen-cart.com/index.php?ma...roducts_id=250
njoy
sn0ut
Bookmarks