I've done a small code correction on Step 3 of the original installation instructions to fix a tiny bug and also I've included an updated CSS and New Instructions on Resize Product Images in the scrolling panel to meet some of your requests. Again, all the credit belong to original Author.
This is a modified version of the 'Web 2.0 Scrolling Best Sellers' script released last week after a request from a member.
Same base functionality but does the following;
1. Selects a number of the latest products (how ever many you specified for the 'new products' box in admin) and scrolls through these like the Web 2.0 Scrolling Specials.
2. Does not select specials to avoid repetitions on pages running Web 2.0 Scrolling Best Sellers
Installation Step 1:
Upload new files:
|
catalog/includes/boxes/scrolling_best_seller.php catalog/best_sellers.php
catalog/includes/languages/english/best_sellers.php |
Installation Step 2:
Open /catalog/stylesheet.css and add at the bottom;
|
|
Installation Step 3:
Open /catalog/includes/column_right.php and find;
|
|
Installation Step 4:
Open the catalog/includes/filenames.php file and add the line before ?> .
define('FILENAME_BEST_SELLERS', 'best_sellers.php');
Resize Scrolling Products Images:
Open the catalog/includes/boxes/scrolling_best_seller.php
FInd: (around line: 25)
while ($random_product = tep_db_fetch_array($rp_query)) {
$pausecontent_bs[$i] = "<centre><br><a href=\'" . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product["products_id"]) . "\'>" . tep_image(DIR_WS_IMAGES . $random_product['products_image'], tep_output_string($random_product['products_name'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>', '&' => '&')), SMALL_IMAGE_WIDTH * 0.7, SMALL_IMAGE_HEIGHT * 0.7) . "</a><br/><a href=\'" . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . "\'>" . tep_output_string($random_product['products_name'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>', '&' => '&')) . "</a><br/>";
Change 0.7 to anything you like. (0.7=70% )
I think many of you have custom made template installed, this is the easiest way to resize the images to suit your own needs.
-------------------------------------------------------------------------------------
I hope this contribution works out well for everyone who uses it!
Credits:
Special Thanks to;
|
A great thanks to osc_devel who provided original 2.0 Web Scrolle New Product & Specials, all credits go to him, i just modified his original code to fit Best Sellers inside scroller box.
Thanks to Dynamic Drive (www.dynamicdrive.com) for providing the base scrolling scripts used to develop this contribution.
Simple contribution created by Barry Mitchell of BPAS New Zealand Limited (www.bpas.co.nz). We offer no warranty, guarantees nor support pertaining to the compatibility of this contribution with your particular website. If you require support installing this or something similar onto your own website then please contact us through www.bpas.co.nz.
|
|