You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the admin template products.options.php, the Attributes tab, the select (line 70) and the accompanying fieldset (line 104) are locked to two specific option types: select and radio.
There are also checkbox and hidden types, as well as custom types, added through hooks, that then need to have value attributes associated with those types.
Maybe make Catalogue::_options_selectable and Catalogue::_options_textual public, or provide magic getter and setter for these arrays (able to marshal the array contents).
Eventually, in the admin script products.options.inc.php, near line 286, the template variable GROUPS could contain an element in $option to indicate that this is a 'selectable' type of option type.
Then, the template will test for 'selectable' instead of the hard-coded option types.
Please also look at template lines 169-185. (Select and Radio has the same code.)
The text was updated successfully, but these errors were encountered:
In the admin template products.options.php, the Attributes tab, the
select
(line 70) and the accompanyingfieldset
(line 104) are locked to two specific option types: select and radio.There are also checkbox and hidden types, as well as custom types, added through hooks, that then need to have value attributes associated with those types.
Maybe make
Catalogue::_options_selectable
andCatalogue::_options_textual
public, or provide magic getter and setter for these arrays (able to marshal the array contents).Eventually, in the admin script products.options.inc.php, near line 286, the template variable
GROUPS
could contain an element in$option
to indicate that this is a 'selectable' type of option type.Then, the template will test for 'selectable' instead of the hard-coded option types.
Please also look at template lines 169-185. (Select and Radio has the same code.)
The text was updated successfully, but these errors were encountered: