Contributions
Add Whats New Link to Categories Box
basically this is just a mod to add a link from your categories box to products_new.php, best used with categories enhancement mod, it is very simple
open catalog/includes/boxes/categories.php and find
---------
$info_box_contents = array();
$info_box_contents[] = array('text' => $categories_string);
it is at the far bottom of the file
replace with
-------------
$info_box_contents = array();
$info_box_contents[] = array('text' => $categories_string);
if ( (basename($PHP_SELF) != FILENAME_PRODUCTS_NEW)) {
$info_box_contents[] = array('align' => 'left',
'text' => '<font size=-2><b><a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL') . '">' . BOX_CATEGORY_PRODUCTS_NEW . '</a></b></font>');
}else{
$info_box_contents[] = array('align' => 'left',
'text' => '<font size=-2><b><a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL') . '"><span class="errorText">' . BOX_CATEGORY_PRODUCTS_NEW . '</a></b></font></span>');
}
You will also have to add
define 'BOX_CATEGORY_PRODUCTS_NEW', 'Newest Products');
to catalog/includes/languages/english.php
email me on joma"AT"austarnet.com.au if u need any help or visit
http://www.caravanmart.com.au for a demo. later
| Jeep | 15 May 2005 |
Incredible. Relax man.
Here the fix.....
A nice contibution......
All the credit goes to Joma Webdesign
Jeep
| Greg Dunn | 5 May 2005 |
| Joma Webdesign | 21 Apr 2005 |
Note: Contributions are used at own risk.
