Editor - More product option settings
In this view, the extra options of a product are managed if it is opened with the function showMoreProductOptionsSettings(curProduct, extra)
in the view theme/views/editor/more-product-settings.html
Main Models
extra.options
:curNewOption
: field reserved for a new optioncurNewSubOption
: field reserved for a new suboption
Utility Functions
hideMoreProductOptionsSettings()
: this function closes this modalupdateExtraOption(option, extra)
: Update an option for an extra businessremoveExtraOption(extra, option)
: Eliminate an option of an extra businessupdateExtraOptionChoice(extra, option, suboption)
: update a suboption of an extra businessremoveSuboption(extra, option, suboption)
: Eliminate a suboption of an extra from a businessaddExtraOptionSuboption(extra, option, option.curNewSuboption)
: Add a suboption to an extra in a businessaddExtraOption(extra, curNewOption, curNewSuboption)
: Add an option to an extra to the business
Example of base theme
hideMoreProductOptionsSettings()
extra.options
- An option if something changes here, activate the function
updateExtraOption()
removeExtraOption()
- A suboption if something changes here, activate the function
removeSuboption(extra, option, suboption)
curNewOption
curNewSubOption
addExtraOption(extra, curNewOption, curNewSuboption)
Updated almost 6 years ago