New signal checkout_confirm_page_content

This commit is contained in:
Raphael Michel
2017-09-07 18:15:36 +02:00
parent cd94549606
commit de992cecf3
2 changed files with 13 additions and 0 deletions

View File

@@ -69,6 +69,17 @@ You will recieve the request triggering the order creation as the ``request`` ke
As with all event-plugin signals, the ``sender`` keyword argument will contain the event.
"""
checkout_confirm_page_content = EventPluginSignal(
providing_args=['request']
)
"""
This signals allows you to add HTML content to the confirmation page that is presented at the
end of the checkout process, just before the order is being created.
As with all plugin signals, the ``sender`` keyword argument will contain the event. A ``request``
argument will contain the request object.
"""
contact_form_fields = EventPluginSignal(
providing_args=[]
)

View File

@@ -2,6 +2,7 @@
{% load i18n %}
{% load bootstrap3 %}
{% load eventurl %}
{% load eventsignal %}
{% block title %}{% trans "Confirm order" %}{% endblock %}
{% block content %}
<h2>{% trans "Confirm order" %}</h2>
@@ -57,6 +58,7 @@
{{ payment }}
</div>
</div>
{% eventsignal event "pretix.presale.signals.checkout_confirm_page_content" request=request %}
<div class="row">
{% if request.event.settings.invoice_address_asked %}
<div class="col-md-6 col-xs-12">