Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sort by Model


dev3

Recommended Posts

Hi, is there a way i can display my product list sort by model number?

 

I did search this forum for "sort by model" bue the search engine gives me an error.

 

Any help will be appreciate it.

 

Thanks

Link to comment
Share on other sites

on index.php look for

 

$listing_sql .= " order by pd.products_name";

 

and change that to

 

$listing_sql .= " order by p.products_model";

 

 

That will take care of it on the product listing part of the pages where it shows all products in a catagory.

 

There are other pages such as products_new.php that will also need to be edited. If you open them in an editer just search for "order by" and change how it is being ordered to the order by p.products_model

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...