Page 1 of 1

Product Options?

Posted: Mon Feb 04, 2013 2:16 am
by Bluesplayer
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.

Re: Product Options?

Posted: Mon Feb 04, 2013 3:11 am
by leo
You have to use Sort Order field.

Re: Product Options?

Posted: Mon Feb 04, 2013 8:52 am
by Bluesplayer
leo wrote:You have to use Sort Order field.
I meant in admin.

I fixed it!

Before:
Image

After:
Image

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");
Managed to fix something myself at last :D .