(First off not sure if the category is correct for this, so I appologize in advance if its incorrect).
Currently the provisioning module shows the same configuration options for both products and addons.
I'm in the process of building out a provisioning module and it would be nice to be able to provide configuration options if the product being created is an addon and not a product.
I.E.
Currently I have a configuration of "Data Center" that is chosen when the product is created.
When addons are created; I don't care about the "Data Center" because its dependent on the product so its a pointless option to display when creating the addon.
Ideally something like this would be possible:
[co]
function provisioningmodule_configOptions(){ return [ 'product' => [ 'Text Field' => [ 'Type' => 'text', ... ], ... ], 'addon' => [ 'Text Field' => [ 'Type' => 'text', ... ], ... ] ];}[/co]
On the backend, if what is returned isn't an array with only the keys 'product' and 'addon' display the config for everything; otherwise only display the config for the respective component.
1 Comment
Login to post a comment.
[co]
{
//return addon options
}