Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can I sort This ?


DVBHardware

Recommended Posts

the os will be using default sort of alphabetic, go into the file and change the sort order to what you require.

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

I dnn't know how to do it, can it be done in phpmyadmin so the sort orded will be the same when inputing new products. And how to do it.

The sort order that I have is correct when displaying product info (101 102 etc.

I'm not a coder just a splicer.

Link to comment
Share on other sites

Steve Took me 3 hrs but I found it . I think ?

 

admin/product_attributes

 

order by products_options_sort_order

 

$attributes = "select pa.* from " . TABLE_PRODUCTS_ATTRIBUTES . " pa left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on pa.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' order by products_options_sort_order";//order by pd.products_name

I'm not a coder just a splicer.

Link to comment
Share on other sites

I see you have commented out pd.products_name, was this the original sort order.

 

Are you trying to order by product attribute id which would be order by pa.products_id

or you could have

order by pa.products_id ASC

 

or you could have

order by pa.products_id, pd.products_name DESC

 

etc etc etc.

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

pd.products_name was the original order by so if I messed up I knew what to replace to original ( the comments). I felt the sort order would be good so if I ever define a new attribute it would put it in the correct ordrer for each group as to never go crazy looking for everything spread out all over the place.

I'm not a coder just a splicer.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...