Hello,
I'm answering my own question, the idea came while wrting the question here : why not set option sort order of all my ingredients to 101, and then add a criterea to the sorting function.
Here is the code in the attribute_preview.php file :
As you can see I only added LPAD(patrib.products_options_sort_order,11,"0") to the ORDER By query.Code:if (PRODUCTS_OPTIONS_SORT_ORDER=='0') { $options_order_by= ' order by LPAD(popt.products_options_sort_order,11,"0"), LPAD(patrib.products_options_sort_order,11,"0")'; } else { $options_order_by= ' order by popt.products_options_name'; }
Now I have to find how to do that in the attribute controler and then in the product page.
If ever someone has the answer it would save me time.
Thanks
Hubert


Reply With Quote
