Skip to content

Commit 00736c6

Browse files
Update eventbrite embedded checkout snippet
1 parent 0531d44 commit 00736c6

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

index.md

+13-7
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,19 @@ displayed if the 'eventbrite' field in the header is not set.
101101
{% if eventbrite %}
102102
<strong>Some adblockers block the registration window. If you do not see the
103103
registration box below, please check your adblocker settings.</strong>
104-
<iframe
105-
src="https://www.eventbrite.com/tickets-external?eid={{eventbrite}}&ref=etckt"
106-
frameborder="0"
107-
width="100%"
108-
height="400px"
109-
scrolling="auto">
110-
</iframe>
104+
105+
<div id="eventbrite-widget-container"></div>
106+
107+
<script src="https://www.eventbrite.nl/static/widgets/eb_widgets.js"></script>
108+
109+
<script type="text/javascript">
110+
window.EBWidgets.createWidget({
111+
// Required
112+
widgetType: 'checkout',
113+
eventId: {{eventbrite}},
114+
iframeContainerId: 'eventbrite-widget-container',
115+
});
116+
</script>
111117
{% endif %}
112118

113119

0 commit comments

Comments
 (0)