Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How does osc sort products?


wsod

Recommended Posts

How does osCommerce sort products, saved in a category? I thought they were sorted by date (last in, first out), but there's no apparent pattern. :-(

 

I have a category with five products in it. They are not sorted by date, not alphabetically, not by quantity and not by price. It appears the order is random. How can that be?

Link to comment
Share on other sites

A default install of OSC v2.31 sort products by name (ascending) in the category view, you can also change the sort descending or by price by clicking on the "column" headers.

 

As you can see in the online demo Here....

Link to comment
Share on other sites

Really? No sort order at all per default?

Wow... :-(

That's correct. That's the whole purpose of contributions. They provide functions that are not in the core code.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

As it turned out, the products were actually alphabetized, as they ought to be per default. I was confused because some of the product names had European decimals (with commas), which placed them in a weird spot.

 

I managed to change the sort order, by modifying a line of code in index.php.

 

Thanks.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...