Interface modules
An interface module is a simplified copy of an admin panel section: the same screens, showing only the data you select. For example, a "Laptops" module shows the catalog with just the laptop category, and a "Warehouse orders" module shows only the orders of one storage. Each module is a separate item in the sidebar, and only the administrators selected in the module see it.
A module doesn't change administrator permissions: what an administrator can do in a module is governed by the same permissions as in the section the module is based on.
The section a module copies is its base (Module base):
| Base | What the module shows |
|---|---|
| Catalog | products of the selected catalog categories |
| Pages | the selected site pages with their subpages |
| Orders | orders of the selected storages |
| Payments | payments of the selected payment methods or order storages |
| Users | users of the selected groups or authorization providers |
| Custom screen | a screen built from widgets. This base is covered in Custom screen |
Permissions
| What you need | Permission or setting |
|---|---|
| open the Interface modules section | interfaceModules.get |
| create a module | interfaceModules.create |
| change a module and configure its screens | interfaceModules.update |
| delete a module | interfaceModules.delete |
| see a module in the menu | the administrator is selected in Who can see the module |
Module list
You create and configure modules in the Interface modules section of the sidebar. The module table has the Name, Marker, Module base, and Administrators (how many administrators see the module) columns. Each row has two buttons: the gear opens the module settings, and the trash can deletes the module.
Deleting a module doesn't delete any data: categories and products, site pages, orders and storages, payments and payment methods, users and groups all stay in place.
Creating a module
-
Open the Interface modules section and click Create interface module.
-
Fill in the common fields:
Field What to enter Name the module name as it will appear in the menu Hint for module admins an optional hint that all module admins see above the module screens. The hint and the name are written in the content language Marker Latin letters, digits, and hyphens, no spaces. The module opens at /marker. The marker can't match the marker of another module or an admin panel sectionModule base the section whose screens the module shows Menu icon the menu item icon. Until you choose one, the menu shows the icon of the base section Who can see the module the administrators whose menu will show the module -
Fill in the settings of the selected base. They appear below the common fields and are described below.
-
Click Create interface module.
Marker and Module base can't be changed after creation: the module settings show them as plain text.
The module appears in the selected administrators' menu right after its base section. A module based on Custom screen goes to the end of the menu.
Catalog base
| Field | What it does |
|---|---|
| Module categories | Required. The catalog categories visible in the module, with their subcategories and products. The rest of the catalog isn't shown in the module |
| Categories in the product card | Which categories module admins see on the product's Categories tab: Module categories only, Entire catalog, or Selected categories (then you pick them in the Categories for the product card list). Product categories an admin can't see aren't lost on save |
| Default product order | How products are ordered when the list opens. As set in the category uses the category setting; otherwise choose a sort field and a Direction. A module admin can change the order in the sorting panel until the page is reloaded, unless the panel is hidden |
| Permanent product filter | Conditions like the ones in Filter by products: product status, attribute, condition, and value. The module shows only products that match all conditions at once. Without conditions, all products in the module's categories are visible |
| Allowed product statuses | The statuses a product can be set to in the module. If a product already has a different status, it stays visible, but it can't be selected again. Empty means all statuses |
| New product | What the module sets for a product created in it: Status, Visibility, Product page template, Attribute set. These settings take priority over the category settings. As in the catalog follows the category and catalog settings |
When a permanent filter is set, the module has no Delete all products action and no bulk product deletion in categories, since those would also delete products outside the filter.
The status from the New product block is set right after the product is created. If the module admin has no permission to change the product status, the product keeps the catalog's default status.
Pages base
| Field | What it does |
|---|---|
| Module pages | Required. The pages visible in the module, with their subpages. Other site pages aren't shown in the module |
| Which pages to show | The page types visible in the module: Common page, Error page, External page, Catalog page. A page of another type is hidden along with all pages inside it. Check at least one type |
| Permanent page filter | Visibility on the site (Any pages, Only visible on the site, Only hidden on the site) and attribute conditions. The module shows only pages that match all conditions at once. A page that doesn't match is hidden along with all pages inside it |
| New page | What the module sets for a page created in it: Where to create (the module page the new page goes into, In the first module page by default), New page types (the types available when creating a page; empty means all), Page type, Visibility, Page template, Attribute set. As in the section works the same as creating a page in the Pages section |
| Allowed deletion options | Which page deletion options module admins have: Delete Page, Delete Page + Subpages, Delete Page + Content, Delete Page + Subpages + Content. If none is checked, pages can't be deleted in the module |
Which pages to show doesn't affect the choice of module pages or the types in the New page block: a page of an unchecked type is created but doesn't appear in the module.
Options with subpages also delete subpages that the filter hides from the module. Delete Page without subpages moves the subpages to the top level of the site, and they disappear from the module.
Orders base
| Field | What it does |
|---|---|
| Module order storages | Required. The storages whose orders are visible in the module |
| Permanent order filter | Statuses and Payment methods. An order is visible if its status is one of the selected ones and it has one of the selected payment methods. An empty field means no condition. If you select a storage's statuses on several axes (order, fulfillment, payment), the order must match each of them. A storage with no statuses selected shows all its orders |
| Allowed order statuses | The statuses an order can be set to in the module. If an order already has a different status, it stays visible, but it can't be selected again. Empty means all statuses |
Payments base
| Field | What it does |
|---|---|
| Module payment methods | The payment methods whose payments are visible in the module |
| Module order storages | The storages whose orders' payments are visible in the module. Payments without an order aren't shown |
| Permanent payment filter | Statuses: payment statuses. Date: which date to check (Creation date or Update date) and how: Last days (a number of days counted from now) or Period (you can enter just one date; the selected days are included). Amount: From and To (you can fill in just one). An empty field means no condition |
| Where “Go to order” leads | Where the link to an order from a payment goes: the Orders section or an orders module. If the administrator has no access to the selected module, or the order is from a storage outside it, the Orders section opens |
Select at least one payment method or storage. If both fields are set, the module shows payments that match both. A payment without the date selected in the filter, or without an amount, doesn't match the condition.
Users base
| Field | What it does |
|---|---|
| Module groups | The groups whose users are visible in the module, including all subgroups |
| Module authorization providers | The authorization providers whose users are visible in the module |
| Permanent user filter | Conditions on user attributes. The module shows only users who match all conditions at once. Conditions are checked in the content language: a user with no value in that language doesn't match. Up to 20 conditions |
| Groups a new user joins | The groups a user created in the module joins right away. If nothing is selected, the user joins all module groups. The group of their authorization provider is added in any case |
Select at least one group or authorization provider. If both fields are set, the module shows users who match both.
Working in a module
Open a module from the sidebar. The hint from Hint for module admins appears above the screens. The screens are the same as in the base section, minus the section's own settings:
| Base | Not available in the module |
|---|---|
| Catalog | the Filter by products tab, because it shows products from the whole catalog |
| Pages | the section's additional settings (error pages are shared across the whole site) |
| Orders | the Order Storages tab: the module has the Orders and Refund Requests tabs |
| Payments | the Accounts and Statuses tabs |
| Users | the Authentication providers and Groups tabs |
Configuring module screens
You can rearrange a module's screens with the interface constructor: hide the tabs, columns, and buttons that module admins don't need. These settings apply only inside the module and don't change the base section.
- Open the module and click Configure module screens. The button is visible to administrators with the
interfaceModules.updatepermission. - Configure the screens the same way as in the interface constructor. Until you save the changes to the module, only you see them.
- Click Save to module to show the changes to all module admins. To return the screens to the state saved in the module, click Discard changes.
- Click Finish configuring to leave configuration mode.