Yes, the widget can be used in both modes on the same page at the same time. Follow these guidelines to implement it correctly:
Default Configuration:
Ensure the application
data-config
DOES NOT contain the“embedded”: true
attribute in the script.Pop-up mode:
You can use either the
<a>
or<button>
tags, which will contain theventrata-checkout
attribute and itsdata-config
. While you may specify the “embedded”: false attribute, it is not required as this is the default setting.Refer to the Implementation Guide for more details.
Embedded mode:
Use the
<aside>
tag to define the widgets’swidth
andheight
. Add theventrata-embedded-widget
attribute along with the widget’sdata-config
. Be sure to specify the“embedded”: true
attribute to enable embedded mode.Refer to the Implementation Guide for more details.