I Have installed QT Pro, and notice that the product attributes get jumbled up, and do not display in order as per the attribute ID displayed in the Admin console.
I have been looking in the class (pasted below) that I think needs changing to sort the attributes before they are displayed, but cant get anything to work. If anyone has got any ideas, that would be great. Thanks
function _draw_stocked_attributes() {
global $languages_id;
$out='';
$attributes = $this->_build_attributes_array(true, false);
if (sizeof($attributes)>0) {
$combinations = array();
$selected_combination = 0;
$this->_build_attributes_combinations($attributes, $this->show_out_of_stock == 'True', $this->mark_out_of_stock, $combinations, $selected_combination);
$combname='';
foreach ($attributes as $attrib) {
$combname.=', '.$attrib['oname'];
}
$combname=substr($combname,2).':';
foreach ($combinations as $combindex => $comb) {
$out.="<tr>\n";
$out.=' <td align="right" class=main><strong>'.$combname."</strong></td>\n <td class=main>";
$out.=tep_draw_radio_field('attrcomb', $combinations[$combindex]['id'], ($combindex==$selected_combination)) . $comb['text'];
$out.="</td>\n";
$out.="</tr>\n";
$combname='';
}
}
$out.=$this->_draw_out_of_stock_message_js($attributes);
return $out;
}
}