View Single Post
  #6  
Old 05-18-2005, 03:44 PM
 
bmm bmm is offline
 

Member
  
Join Date: Apr 2003
Location: Laguna Beach, Ca
Posts: 11
 

Default

Quote:
Originally Posted by shan
http://forum.x-cart.com/viewtopic.php?t=17780

Hi , this is exactly where I started...and it works great, but I need some help.
I have added two new Б─°sort byБ─² options at the top of the products page; Б─°sort by dateБ─² (as the example in the above thread shows) and a Б─°sort by brandsБ─².
I set Б─°sort by dateБ─² to the default in admin/general settings, hoping to show the newest products first. But, when the products are displayed, by default the products are displayed in reverse of what I want. The Б─°newestБ─² products are on the bottom, with the Б─°oldestБ─² at the top. The arrow is pointed up. Of course if I hit the Б─°sort by dateБ─² link again, it reverses and is perfect. I JUST need to reverse the Б─°sort by dateБ─² option and not the rest of the sort by options.

I have searched all over for a solution and have already tried;

1. Changing "DESC" : "ASC" in search.php, but this changes ALL of the Б─°sort byБ─² options and I just want to change the Б─°sort by dateБ─² order.
2. I have tried changing $sort direction = 0; in products.php, but again this changes the all of the sort by options.
3. I found posts where this option was built into older versions.

Any help or direction would be appreciated.
__________________
Well, someone has the answer, go find them!

x-cart gold version 4.0.12
apache 1.3.33 linux
perl 5.008 linux
php 4.3.10 linux
mysql 4.0.22-standard
Reply With Quote