Skip to content

Global Options ​

The Global Options module allows administrators to define reusable product options such as Size, Spice Level, Sauce, Add-ons, etc. These options can then be attached to multiple products, ensuring consistency across menus and branches.

Index Page ​

The index page lists all available global options in a tabular format.

Filters ​

  • Branch – Filter options by assigned branch.
  • Option Type – Filter by type (e.g., Radio Button, Select, Checkbox, Multiple Select).
  • From / To – Filter by created date range.

Actions ​

  • Create Option – Add a new global option.
  • Row Actions:
    • Edit Option – Modify existing option details.
    • Delete Option – Remove an option permanently.
  • Bulk Actions:
    • Delete Options – Delete multiple selected options.

CRUD Attributes ​

AttributeDescriptionRequired
NameOption name, translatable (e.g., Size, Sauce, Bread Type).✅ Yes
BranchAssigns the option to a specific branch.✅ Yes
TypeDefines the input type: Radio Button, Select, Checkbox, or Multiple Select.✅ Yes
RequiredMarks if selection of this option is mandatory when ordering.✅ Yes
ValuesDefines the available values for this option.✅ Yes

Values Behavior ​

  • If multiple values allowed (Radio, Select, Multiple Select, Checkbox):
    • Label – Translatable value name (e.g., Small, Medium, Large).
    • Price – Additional price for this value (can be zero).
    • Price Type – Fixed or Percentage.
  • If single value only:
    • Only Price and Price Type are required.

Create Page ​

The Create Option page allows you to define a new global option.

  • Fill in Name (translatable).
  • Select Branch (required if user not assigned to a specific branch).
  • Choose the Type of option.
  • Mark if it is Required or optional.
  • Add Values based on type:
    • For multiple-choice: define label(s), price, price type.
    • For single-choice: define only price and price type.

Once complete, click Create to save.

Edit Page ​

The Edit Option page allows administrators to update an existing option.

  • Name and Type can be updated.
  • Add, edit, or remove Values.
  • Adjust prices or price type for each value.
  • Toggle Required as needed.

Example Use Cases ​

  • Size Option – Radio Button with values Small (+0 JOD), Medium (+2 JOD), Large (+4 JOD).
  • Spice Level – Select with values Mild, Medium, Hot.
  • Add-ons – Multiple Select with extra toppings (each with different prices).

✅ This ensures options are consistent, reusable, and manageable across multiple products and branches.

Tenvoro