For the complete documentation index, see llms.txt. This page is also available as Markdown.

Instore Dynamic Agreements

Dynamic Agreements is an Instore widget that manages the agreements shown on the Create a New Customer screen. Each agreement can be displayed as a modal, a link, or plain text, and a single agreement can contain multiple links and send multiple parameter names. The legacy single-link, single-name setup is still supported.

In this tutorial, you will:

  1. Create the widget schema in Omnitron.

  2. Create the widget and add agreements to it.

  3. Enable dynamic agreements in Instore.

Prerequisites

  • Access to Omnitron with permission to manage widget schemas and widgets for the relevant sales channel.

  • Access to the Instore Settings menu.

Step 1: Create the widget schema

  1. In Omnitron, go to Sales Channels > Content Management > Widget Schema Management.

  2. Click New Widget Schema in the upper-right corner.

  1. In Widget Type, enter Instore Dynamic Agreements.

  2. In Schema, paste the following JSON:

  1. Click Save.

Step 2: Create the widget

  1. In Omnitron, go to Sales Channels > Content Management > Widget Management.

  2. Click New Widget in the upper-right corner.

  1. Fill in the fields as follows:

Field
Value

Widget Name

Instore Dynamic Agreements

Widget Slug

instore-dynamic-agreements

Widget Type

Instore Dynamic Agreements

Template

/

  1. Click Add Subcontent to add an agreement. Repeat this for each agreement you want to show on the registration screen.

  1. Configure the subcontent fields described in the next section, then click Save.

Subcontent fields

In the field names below, N stands for 1, 2, or 3. Each agreement supports up to three links.

Display and behavior

  • Visibility (required): Select Visible to show the agreement or Hidden to hide it.

  • Requirement (required): Select Required to make the agreement mandatory or Optional to make it optional.

  • Allow Selection: Controls whether the agreement can be selected with a checkbox.

  • Default Value: When Allow Selection is set to False, sets the agreement's default value. True saves the agreement as selected by default; False saves it as not selected.

Agreement text

  • Agreement Text (required): The text displayed for the agreement. For Modal and Link types, wrap the clickable part in <link> tags. The wrapped text is underlined and opens the modal or the link when clicked. For example, entering I have read and accept the <link>Membership Agreement</link>. makes Membership Agreement the clickable part.

  • Link N Type: The agreement type. Choose one of the following:

    • Modal: Clicking the linked text opens a modal with the configured title and content.

    • Link: Clicking the linked text redirects the user to the configured URL.

    • Text: Leave the type empty to create a plain-text agreement. Text agreements don't need a URL, modal title, or modal content.

  • Link N URL: For Link type agreements, the URL the user is redirected to.

  • Link N Modal Title: For Modal type agreements, the title of the modal.

  • Link N Modal Content: For Modal type agreements, the HTML content of the modal.

Data sent to the backend

  • Agreement Parameter Name: The parameter name sent to the backend when the customer accepts the agreement, for example email_allowed or sms_allowed. To send multiple names, separate them with commas. A single acceptance sends every listed name as true.

  • Placement: Where each parameter is placed in the registration request. Values are comma-separated and match the parameter names by position. A single value applies to all parameters. If you leave this field empty, the page default is used (root on registration, attributes on the profile page).

    • root: Sends the parameter in the top-level object.

    • attributes: Sends the parameter inside the attributes object.

    • both: Sends the parameter in both locations.

    Leave a slot blank to use the page default for that parameter, for example attributes, , root.

  • Version: The version used to build versioned values such as true/1.0.0. Values are comma-separated and match the parameter names by position. A single value applies to all parameters, and a blank slot sends a plain true. Applies only to parameters placed in attributes or both.

Step 3: Enable dynamic agreements in Instore

  1. In Instore, open the left menu and go to Settings > Configuration.

  2. Turn on Use Dynamic Agreements on the new customer registration screen.

The agreements you configured now appear on the Create a New Customer screen.

Last updated

Was this helpful?