Is there a way to put the product options in alphabetical order? Some of my option selections are long and confusing.
By the above I mean when you add options to a product such as black, red, chocolate and so on.
Product Options?
Re: Product Options?
You have to use Sort Order field.
-
- Posts: 152
- Joined: Sun Jan 06, 2013 3:03 pm
Re: Product Options?
I meant in admin.leo wrote:You have to use Sort Order field.
I fixed it!
Before:
After:
I added 'order by name' to this code in model_admin_productoption:
Code: Select all
function get_option_values($option_id){
$results = $this->database->getRows("select option_value_id, option_id, name from option_value where option_id = '" . (int)$option_id . "' and language_id = '" . (int)$this->language->getId() . "' order by name");