Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Attributes in alphabetical order, can I change?


betterbannerprinting@yahoo.com

Recommended Posts

Hmm... I also noticed it arranges your dropdown selections values in whatever order it wants. Wonder if there's a way to change that. Does this contribution do that as well or is there one out there that does?

 

 

try adding an order by to the $products_options_query in /product_info.php :

 

$products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id . "'" . "ORDER BY pov.products_options_values_id");

 

david

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...