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:
Create the widget schema in Omnitron.
Create the widget and add agreements to it.
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
In Omnitron, go to Sales Channels > Content Management > Widget Schema Management.
Click New Widget Schema in the upper-right corner.

In Widget Type, enter
Instore Dynamic Agreements.In Schema, paste the following JSON:

Click Save.
Step 2: Create the widget
In Omnitron, go to Sales Channels > Content Management > Widget Management.
Click New Widget in the upper-right corner.

Fill in the fields as follows:
Widget Name
Instore Dynamic Agreements
Widget Slug
instore-dynamic-agreements
Widget Type
Instore Dynamic Agreements
Template
/
Click Add Subcontent to add an agreement. Repeat this for each agreement you want to show on the registration screen.

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, enteringI have read and accept the <link>Membership Agreement</link>.makes Membership Agreement the clickable part.
Links
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_allowedorsms_allowed. To send multiple names, separate them with commas. A single acceptance sends every listed name astrue.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 (
rooton registration,attributeson the profile page).root: Sends the parameter in the top-level object.attributes: Sends the parameter inside theattributesobject.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 plaintrue. Applies only to parameters placed inattributesorboth.
Step 3: Enable dynamic agreements in Instore
In Instore, open the left menu and go to Settings > Configuration.
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?

