celeb-x Posted September 16, 2002 Share Posted September 16, 2002 Hi! I was wondering if anyone found an solution yet for sorting the optionlist: ( example product ) Awaiting your response, Snt Link to comment Share on other sites More sharing options...
♥olby Posted September 16, 2002 Share Posted September 16, 2002 Look for this line in catalog/products_info.php: $products_options = 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 = '" . $HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . $products_options_name_values['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "' order by pov.products_options_values_name"); // added sort on options 08.07.02 olby It's the order by (in bold) that does the trick. Best Regards olby Link to comment Share on other sites More sharing options...
celeb-x Posted September 16, 2002 Author Share Posted September 16, 2002 Kewl, it works! Thank you verry much! :) Greetz, Snt Link to comment Share on other sites More sharing options...
Guest Posted May 19, 2008 Share Posted May 19, 2008 Does this work with the new version of OSC and if so, where is teh "products_info.php" file Dean Look for this line in catalog/products_info.php: $products_options = 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 = '" . $HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . $products_options_name_values['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "' order by pov.products_options_values_name"); // added sort on options 08.07.02 olby It's the order by (in bold) that does the trick. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.