diff --git a/doc/development/api/general.rst b/doc/development/api/general.rst index 9dd1603985..72bcba527e 100644 --- a/doc/development/api/general.rst +++ b/doc/development/api/general.rst @@ -33,11 +33,11 @@ Frontend -------- .. automodule:: pretix.presale.signals - :members: html_head, html_footer, footer_link, front_page_top, front_page_bottom, front_page_bottom_widget, fee_calculation_for_cart, contact_form_fields, question_form_fields, checkout_confirm_messages, checkout_confirm_page_content, checkout_all_optional, html_page_header, sass_preamble, sass_postamble, render_seating_plan, checkout_flow_steps, position_info, item_description + :members: html_head, html_footer, footer_link, front_page_top, front_page_bottom, front_page_bottom_widget, fee_calculation_for_cart, contact_form_fields, question_form_fields, checkout_confirm_messages, checkout_confirm_page_content, checkout_all_optional, html_page_header, sass_preamble, sass_postamble, render_seating_plan, checkout_flow_steps, position_info, position_info_top, item_description .. automodule:: pretix.presale.signals - :members: order_info, order_meta_from_request + :members: order_info, order_info_top, order_meta_from_request Request flow """""""""""" diff --git a/src/pretix/presale/signals.py b/src/pretix/presale/signals.py index 0186f069e2..d4793aabc1 100644 --- a/src/pretix/presale/signals.py +++ b/src/pretix/presale/signals.py @@ -179,6 +179,24 @@ This signal is sent out to display additional information on the position detail As with all plugin signals, the ``sender`` keyword argument will contain the event. """ +order_info_top = EventPluginSignal( + providing_args=["order"] +) +""" +This signal is sent out to display additional information on top of the order detail page + +As with all plugin signals, the ``sender`` keyword argument will contain the event. +""" + +position_info_top = EventPluginSignal( + providing_args=["order", "position"] +) +""" +This signal is sent out to display additional information on top of the position detail page + +As with all plugin signals, the ``sender`` keyword argument will contain the event. +""" + process_request = EventPluginSignal( providing_args=["request"] ) diff --git a/src/pretix/presale/templates/pretixpresale/event/order.html b/src/pretix/presale/templates/pretixpresale/event/order.html index cab26564ff..0ba6bdb2f1 100644 --- a/src/pretix/presale/templates/pretixpresale/event/order.html +++ b/src/pretix/presale/templates/pretixpresale/event/order.html @@ -92,6 +92,7 @@ {% endif %} + {% eventsignal event "pretix.presale.signals.order_info_top" order=order %} {% if order.status == "p" or order.status == "c" %} {% if refunds %}