Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sort numbers/model in logical way


Salvo

Recommended Posts

Hi all

 

I am trying to sort some model in a osc. But I have given a certain cretaria.

 

a1, a2, a3.......a19, a20 and so on....

 

using order by, it comes as

 

a1

a19

a2

a20

a3

 

How can I solve this problem and have:

a1

a2

a3

a19

a20 etc etc..

 

Salvo

Link to comment
Share on other sites

  • 1 month later...

Need it too!

 

(seems much more logical than the way implemented, as 5 is less than 10).

 

May be you guys give a point where to look/change (i know php)?

Link to comment
Share on other sites

Hi all

 

I am trying to sort some model in a osc.  But I have given a certain cretaria.

 

a1, a2, a3.......a19, a20 and so on....

 

using order by, it comes as

 

a1

a19

a2

a20

a3

 

How can I solve this problem and have:

a1

a2

a3

a19

a20 etc etc..

 

Salvo

 

Hi,

 

How about this:

a01

a02

a03

a10

a11

 

or if you have a lot of products:

a001

a002

a010

a011

a100

a101

a200

and so on...

 

With kind regards,

Edze

Link to comment
Share on other sites

If you can't change those model numbers, use the Sort Order contribution to assign an order. You can then sort your products in any order that you want.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

When you already got 2000 items, there is no good in manual renaming all of them :)

I'd rather stick with Sort Order contribution, but imho it's just silly, there _should_ be more elegant way.

Really, I see no other way, though....

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...