Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
    [service] => stdClass Object
        (
            [id] => 3
            ....

            [options] => Array
                (
                    [0] => stdClass Object
                        (
                            [id] => 2
                            [service_id] => 3
                            [option_pricing_id] => 1
                            [qty] => 1
                            [value] => new-key-123-abcdefg-license
                            [encrypted] => 0
                            [option_value] => 
                            [option_value_name] => 
                            [option_id] => 1
                            [option_label] => License Key
                            [option_name] => license-key
                            [option_type] => textarea
                            [option_addable] => 0
                            [option_editable] => 0
                            [option_pricing_term] => 1
                            [option_pricing_period] => month
                            [option_pricing_price] => 0.0000
                            [option_pricing_price_renews] => 0.0000
                            [option_pricing_setup_fee] => 0.0000
                            [option_pricing_currency] => USD
                        )

                )


Overriding Module Row or Module Group with Configurable Options

Info
title5.4 feature

This feature was added in Blesta version 5.4.

Module Rows are typically associated with a server, and Module Groups are typically associated with a group of servers. For example, a shared hosting module like DirectAdmin allows you to create "Server Groups" and "Servers". A server group would be considered a Module Group, and a server would be considered a module row. These definitions may change from module to module, but whatever they are called within the module, they can be overridden.

Typically these are defined on a Package. For example, using the DirectAdmin module as an example, on the Package you can set a specific server or server group to provision new accounts from. These can be overridden with a configurable option. A common use-case for this is "Location". If servers are organized into groups, and those groups designate a location, you can allow the client to select their location on their own.


Attribute to OverrideName (This is the form field name set on the option)
Module Groupmodule_row_group
Module Rowmodule_row_id

The value of the field should match the ID for the group, or row, specifically. To determine the group or row ID, edit the group or row and observe the ID in the URL.

/admin/settings/company/modules/editgroup/5/1/ (In this case, the group ID is "1")

/admin/settings/company/modules/editrow/5/4/ (In this case, the row ID is "4")