Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


JEWbacca

Recommended Posts

Posted

Where would I set this? Is there anyway?

 

Also how can I remove the '+' that shows up next to the default sort method?

 

Thanks,

 

Nate

Posted

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.

Archived

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

×
×
  • Create New...