Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New products in alphabetical order


nextime

Recommended Posts

Posted

Hallo,

I have approx 30 items in new products for: See Visit My Website

I would like to have them displayed in an alphabetical order.

I have gone through the forum, but could not find an answer.

 

Does anyone have a suggestion??

 

Thanks in advance

 

Rene

Posted

Try this

 

catalog/productsnew.php

 

has

 

$products_new_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added DESC, pd.products_name";

 

change

 

order by p.products_date_added DESC, pd.products_name";

 

to

 

.........

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
Try this

 

catalog/productsnew.php

 

has

 

$products_new_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added DESC, pd.products_name";

 

change

 

order by p.products_date_added DESC, pd.products_name";

 

to

 

.........

 

Hallo Geoffrey Walton,

 

Thank you for your info. Tried to make some changes there, but did not result in any change of sequense.

 

Can you help me out??

 

Thanks in advance

 

Rene

Archived

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

×
×
  • Create New...