Currently there are 2 options for sorting of the product Characteristics, which determines the order they appear in the popup displayed in the front-end. This is set by the option "Characteristics values ordering" under "System->Configuration->DIsplay".
This does not cater the ordering in certain situations. e.g. We start with "Sizes" Small, Medium, Large. Ordering by ID caters for this scenario OK at this point. But later we add X-Small and X-Large.
The correct ordering should be "X-Small, Small, Medium, Large, X-Large" ...
... but with ID sorting we have "Small, Medium, Large, X-Small, X-Large" ...
... and with name ordering we have "Large, Medium, Small, X-Large, X-Small".
I am looking to add my own ordering column, but I can not see where the ordering is use for the front end. I found code in two view.html.php files with the following:
if($config->get('characteristics_values_sorting')=='old'){
$order = 'characteristic_id ASC';
}else{
$order = 'characteristic_value ASC';
}
But changing these does not effect the way the pop-up is displayed on the front end.
Any help would be appreciated.