Thread: Newest Products
View Single Post
  #124  
Old 03-20-2006, 01:33 PM
  cliffo4's Avatar 
cliffo4 cliffo4 is offline
 

Member
  
Join Date: Jul 2005
Location: Leicester, UK
Posts: 19
 

Default Re: New Products page

Quote:
Originally Posted by lapidarist
This is my first xcart add-on. I wrote some code to show New Products on its own page.
Firstly I thankyou for this full and useful code - with a few mods to it have combined in ito our seltup nicely.

However - there is a small bug in the php code

The line near bottom that reads:

Code:
$smarty->assign("navigation_script","newproducts.php?days=$days&sortby=$sortby&sort_direction=".$sortdirection);

should be:

Code:
$smarty->assign("navigation_script","newproducts.php?days=$days&sortby=$sortby&sortdirection=".$sortdirection);
That is take the underscore in sort_direction out

This manifests itself when you use the sort by links and then try and use the page navigation numbers as it fails to set the correct direction properly.

Hope that is of use to others too.
__________________
X-Cart Gold 4.0.19
http://interstellarsounds.com
Reply With Quote