Load category information. See ScriptCategoryModel for more information. Usually this is used to load the current category information by passing null or 0 as the id. But you can load other category id's as well, in which case the user must have access to those categories (access permission).
The callback function to execute when the server response is received.
Optional
idOrIds: number | number[]If not specified or 0, return the current category information. Alternatively the categories to load. Note that the user must have access to the requested categories.
The department information. See ScriptDepartmentModel for more information. Usually this is used to load the department information of the current user by passing null or 0 as the id. But you can load other department id's as well, in which case the user must have the necessary permissions to load the requested department:
The callback function to execute when the server response is received.
Optional
idOrIds: number | number[]If not specified or 0, return the current department information. Alternatively the departments to load. Note that the user must have the necessary permissions to load the requested departments.
Load the specified editable content entries. See ScriptEditableContentModel for more information. The editable content can be used to display the HTML within the editor and have it configurable in admin.
The callback function to execute when the server response is received.
Optional
idOrIds: number | number[]The id or ids of the editable content entries to load.
Load a list of all available editable content entries on the storefront. See ScriptEditableContentListModel for more information.
The callback function to execute when the server response is received.
Load product information. See ScriptProductModel for more information. Usually this is used to load the current product information by passing null or 0 as the id. This will also include the job information and populate the data in the model. But you can load other product id's as well, in which case the user must have access to those products (access permission).
The callback function to execute when the server response is received.
Optional
idOrIds: number | number[]If not specified or 0, return the current product information. Alternatively the products to load. Note that the user must have access to the requested products.
Sets the category entity for a specific category and key. This can be used to store additional data against a category. This can only be used if the user has the necessary permissions to edit category data:
Note: this method will not apply any validation and setting invalid values may cause issues with the storefront.
Callback will be triggered with the success flag indicating if the value was set.
The category id to set the value for.
The key of the category entity to adjust.
The new value
Load user information. See ScriptCustomerModel for more information. Usually this is used to load the current user information by passing null or 0 as the id. But you can load other customer id's as well, in which case the user must have the necessary permissions to load the requested customer:
In case of the last option (principal vs subordinate), the information included will be limited.
The callback function to execute when the server response is received.
If not specified or 0, return the current user information. Alternatively the customers to load. Note that the user must have the necessary permissions to load the requested customers.
Generated using TypeDoc
Load specific resources of the storefront. This can be used to load multiple entries in one go by specifying the id's of the resources to load. If you pass null or 0 as the id, the resource will be loaded for the current product, category, user etc.
Note that there may be additional restrictions on what can be loaded. For example, the user may not have the necessary permissions to load the requested resource.