osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Sort function

This is a discussion on Sort function within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I see many instances of the "sort" used in the admin. Some times you'll see numbers like 1,2,3, 4,830,7, 39, ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-17-2005, 07:42 AM
Member
 
Join Date: Nov 2004
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
goaskmom
Default Sort function

I see many instances of the "sort" used in the admin. Some times you'll see numbers like 1,2,3, 4,830,7, 39, 9,10,701.

In reading through a long thread on how to fix PayPal, one guy said that most problems people have are with the sort orders for it all.

Putting different things in front of others makes many different things happen.

I understand the value of a sort, but I haven't seen how "sort" is really used in OSC explained. Anyone seen anything or could someone explain it, and why you'll see large 3 digit numbers right in there with other smaller numbers?

I've seen the field in the database, and I know that when you add mod's, people make up numbers so they might not conflict with some other mod.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-17-2005, 08:12 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
Default RE: Sort function

It is really easy.

Smaller numbers will appear higher in the output than larger numbers. Doesn't matter what the numbers are, that is how it works.

So, for shipping modules, you can set the sort order to 10,20,200,600,4000

And the module with the value of 10 will appear first on the checkout shipping page. The one with 4000 will appear last.

It works the same for all others.

The issue is with the order total mods. If you have them in the wrong order, some of them will not be able to get the correct values from the previous module, and the whole thing breaks down. They are set to a correct order by default, and only if you start messing with them will you have problems.
__________________
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!
  #3  
Old 01-17-2005, 09:31 AM
Member
 
Join Date: Nov 2004
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
goaskmom
Default RE: Sort function

Are the sort orders dynamic or relative to the module using them? For instance, is a sort order of 5 in the shipping independent of all other modules? Or can "5" only be used once?

I'm just a little mixed up on where the 800's come from in the sort orders and why.

Is it possible to change the numbers on a sort order for one section and have it screw up something somewhere else, where that number was already being used?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-17-2005, 12:16 PM
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
Default RE: Sort function

Shipping sort orders are only good for shipping modules.

Payment sort order are only good for payment modules.

You are over-thinking this. All sort order does is determine what order the modules or categories are displayed in the catalog, nothing more.

So, since payment modules are never shown on the shipping page (in the catalog checkout), their sort order is irrelevant in regards to the shipping modules.

The numbers can be completely arbitrary. Sometimes there are large gaps in certain modules to give you space to add more before it. If you pack all the numbers together and want to add one in the middle, you will have to change all the others to fit it in. If you have say a gap of 100 between your modules, you can space them by ten and add many modules without having to edit the numbers on the others.
__________________
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!
  #5  
Old 01-17-2005, 04:53 PM
Member
 
Join Date: Nov 2004
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
goaskmom
Default RE: Sort function

Thanks Michael- wasn't over thinking it, just never seen a single word about it, and when it involves how things work, and changes the outcome of certain modules, I ask first, change second!

Okay, not all the time, but I'm trying to learn to do that.

Thanks for explaining it. Now I know!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

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
Sort by price? kenlyle osCMax v2 Customization/Mods 5 04-17-2008 05:37 PM
attribute sort timbrrr osCMax v2 Customization/Mods 3 01-17-2006 12:24 PM
Sort by price question moreduff osCMax v1.7 Discussion 1 08-02-2005 07:32 AM
Sort products by price Anonymous osCMax v1.7 Discussion 3 06-02-2005 04:55 AM
sort order to pot!! moreduff osCMax v1.7 Discussion 0 04-12-2005 04:57 AM


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


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