Components are the single functions of Johku App: timelines, product lists, sales functions and management pages. You need a new component when you want the same function available in several different versions, for example a separate timeline for hourly reservable products or a separate product list for a kiosk's POS.
Before you start
- You need a user account with the Administrator access level.
- Not all components have settings that a merchant can edit. Creating new components applies to the component types that can be edited, for example by the products or resources attached to them. See Johku component types.
Create a component
- Go to the Settings → Johku App → Components page.
- Select New component.
- Give the component a name. The name is shown to the user as the tab title, so use a descriptive name, for example "Activity timeline".
- Choose the component type from the drop-down menu and select OK.
- Choose the settings you want in the component. The settings depend on the type: for example, you add products or resources to a timeline and choose its mode, and you link a category to a product list.
- Select Save.
Place the component in the menu
When the component has been created, add it to the layout section you want. Otherwise it isn't shown anywhere in the admin.
- Go to the Settings → Johku App → Layout sections page.
- Select the name of the section you want to add the component to.
- Select Add component, choose the component from the drop-down menu and confirm.
- Select Save.
You can also add a component directly in the user interface's edit mode; see Edit a user interface in the admin.
Result
The component appears as a tab in the layout section you added it to, and the products, resources or categories chosen for it are shown. Finally, check that the content matches what you expected.
If something goes wrong
- The component isn't shown in the admin: the component has been created, but it hasn't been attached to a layout section.
- The component has nothing to set: it is a fixed component type that has no settings for the merchant to edit. It is placed in a layout section as it is.
Example: a separate timeline for reservations
The most typical need for a new component is a second timeline, when the shop has products reserved both by the day and by the hour. The whole work step with examples is described in Create a new timeline.