I wanted a way to display my attributes starting with the lowest price first (or zero) to the highest price last. After trying to find any post to this that was current and that worked, I looked on my own. I think I found the way to do this in the classes directory in the pads_base.php file. around line 312, I placed the order statement that was referred to in some earlier documentation, so that it looks like this (new addition in bold):
$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)$this->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 = '" . (int)$languages_id . "'" . " order by pa.options_values_price, pa.products_attributes_id" );
If anyone has a better way to do this, I'd like to hear from them, or if someone sees a red flag doing this, please point it out.
Thanks
Bookmarks