Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Default sort by product model (not name) ???


Recommended Posts

http://www.oscommerce.com/community/contri...t_order_1_2.zip is a contrib that helps with sorting the order of products via admin... real easy =)


This lets me define the exact order, all I need to do is set by model (thats the order I want)- I like this contrib but its alot of extra work...?


Any other ideas?



Link to comment
Share on other sites

Well 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, I believe.


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


That should take care of it.

Wendy James


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

Link to comment
Share on other sites


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

  • Create New...