Represents object typename for the CTA object.
Callback URL using for sent configurator selected information to this url and redirected to the url after get response.
The indicator of whether the call-to-action is enabled or not.
Label of button for call-to-action.
Represents the call-to-action information for an ecom configurator.
What does it unlock?
Call-to-Action interface. Defines interactive elements and buttons for user actions within the configurator.
Practical Application
Read-only CTA definition containing the label text and action URL configured in MetaBox admin. Received via ecomConfiguratorDataUpdated event. Use to render custom CTA buttons matching admin-configured actions (e.g., 'Request Quote', 'Add to Cart').
AI Coding Best Practices
Subscribe to ecomConfiguratorDataUpdated to receive CTA config. Use the label for button text. The actual CTA trigger is
api.sendCommandToMetabox(new GetCallToActionInformation())— which POSTs the config JSON to the callback URL. The backend returns{ redirectUrl }.