Hi,
I would like to change the formatting of "Check an order's products" condition from order module.
Currently it shows the list of products as a <select> element with <options>. In case of bigger number of products the list becomes hard to maintain. Pre-selected values can inadvertently be unselected if the user makes additional choices without holding down the modifier key for multiple values.
My idea is to replace the select elements with checkboxes with some styling added so they look like a multiple select element. I experimented with replacing the type 'list<text>' in custom hook_rules_condition_info() to 'boolean' but that shows only one option of course...
Is anyone interested in that functionality or is it just my special case?
Comments
Comment #1
longwaveChanging this would be helpful for everyone. Multi-select lists are always hard to use, even if they only have a small number of items. A list of checkboxes, or some Ajax functionality that lets you search/select/deselect would be a good improvement.
Comment #2
athanor commentedSomehow similiar request found in Rules issue queue: Use autocomplete instead of select list for the fields select in Entity has field condition
Another thing is that products are rendered on that select list by their SKU and for me that should be a title instead. But this can be easily customized with hook_options_list callback.
Comment #3
tr commentedComment #4
tr commentedAdded "Rules" component.