osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Module Display Order Matches Sort Order in Admin

This is a discussion on Module Display Order Matches Sort Order in Admin within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Module sorting was not correct. For example it was sorted 100, 200, 35, 400, 80. To fix that replace: function ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 08-09-2007, 03:26 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Module Display Order Matches Sort Order in Admin

Module sorting was not correct. For example it was sorted 100, 200, 35, 400, 80. To fix that replace:

function resort_array($a, $b) {
return strcmp($a['sortnumber'], $b['sortnumber']);
}

with :

function resort_array($a, $b) {
return ($a['sortnumber'] > $b['sortnumber']);
}


That's all.



More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

« eCard.pl | Sts Plus »
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Create order module in admin with 2 x tax dixxy osCMax v2 Features Discussion 3 10-10-2006 03:29 PM
Product Sort Order davem osCMax v2 Customization/Mods 4 05-21-2006 04:33 PM
sort order to pot!! moreduff osCMax v1.7 Discussion 0 04-12-2005 04:57 AM
Product Sort Order xtech osCMax v1.7 Discussion 6 04-08-2005 07:49 AM
Change sort order on new products Lord osCommerce 2.2 Modification Help 2 03-23-2005 03:05 AM


All times are GMT -8. The time now is 06:19 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax