Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Limit or remove bestsellers?


beachboy

Recommended Posts

I found this code in bestsellers.php. can I add something here to limit it to 5?

" . MAX_DISPLAY_BESTSELLERS);

} else {

$best_sellers_query = tep_db_query("select p.products_id, pd.products_name, p.products_ordered from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_ordered > 0 and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' order by p.products_ordered DESC, pd.products_name limit " . MAX_DISPLAY_BESTSELLERS);

}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...