The top products and latest additions may be displayed in shopping cart catalog and search pages by inserting PHP code in the page where it is to appear.
Parameters may be added to the src in order to modify the actions of the script. To add one parameter, first add a question mark "?" and then add the parameter. If more than one parameter is specified, add an ampersand "&" after the first parameter and to separate additional parameters. Here is an example.
Number of Products Shown
If not otherwise specified, the top.js.php script will display the last 10 new products and latest additions. To display a lower number of products, add the parameter "items=x" where x is the number of products to display.
This include will display the 5 most popular and latest additions.
<script language="JavaScript" src="top.js.php?items=5"></script>
Redirect To A Different Product Page
In shops where only custom catalog pages are used and a direct link to catalogue.php is not desired, the top.js.php product links can be redirected to the custom catalog pages by adding a "redirect=x" parameter, where x is the local file name or URL.
This include will display the 10 most popular and latest additions in a custom product page named "product.html".
<script language="JavaScript" src="top.js.php?redirect=product.html"></script>
Table Header Text
The text that appears at the top of the listings is set in the corresponding language file, language/xx/topjs.inc.php, where xx is the language abbreviation. For example, the text for English language is set in language/en/topjs.inc.php.
Layout, Colors, and Fonts
The table borders, background colors, and fonts can be controlled through the Layout menu and with style sheets (CSS).