Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can I display products not by product names but by product number?


nycharms

Recommended Posts

I have lots of jewelry products,

and I'd like display products by product's ID number in the product page.

 

How can I do that?

 

Thanks in advance.

 

Ken

 

Open file index.php

 

Find line:

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

 

change it to

 

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

 

There are couple of occurrences in some cases they are not searchable so just scroll through the page, change them all.

Link to comment
Share on other sites

Open file index.php

 

Find line:

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

 

change it to

 

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

 

There are couple of occurrences in some cases they are not searchable so just scroll through the page, change them all.

:D Thanks,

Sanam.

Happy Thanksgiving!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...