Skip to content

Commit

Permalink
Merge pull request #168 from wizzu/tickets_visible_order_id
Browse files Browse the repository at this point in the history
make order number visible during ordering
  • Loading branch information
japsu committed Apr 7, 2019
2 parents a430344 + 59e6592 commit ac632e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tickets/models.py
Expand Up @@ -841,7 +841,8 @@ def checkout_stamp(self):

@property
def checkout_message(self):
return ", ".join(i.description for i in self.order_product_set.filter(count__gte=1))
products = ", ".join(i.description for i in self.order_product_set.filter(count__gte=1))
return f"{self.formatted_order_number}: {products}"

def checkout_mac(self, request):
return compute_payment_request_mac(request, self)
Expand Down
2 changes: 2 additions & 0 deletions tickets/templates/tickets_confirm_phase.pug
@@ -1,6 +1,8 @@
extends tickets_phase_base.pug
- load i18n
block body_text

.pull-right.text-muted {{ order.formatted_order_number }}
h2 {% trans "Confirm order" %}
p {% blocktrans %}Please check your delivery information, especially the e-mail address, and the amounts of products being ordered. By selecting <em>Proceed to payment</em> you will navigate to a payment page on which you will select the payment method.{% endblocktrans %}

Expand Down
1 change: 1 addition & 0 deletions tickets/templates/tickets_thanks_phase.pug
@@ -1,6 +1,7 @@
extends tickets_phase_base.pug
- load i18n
block body_text
.pull-right.text-muted {{ order.formatted_order_number }}
h2 {% trans "Thank you for your order!" %}
p {% trans "Your order is now complete. Welcome to the event!" %}
block form_content
Expand Down

0 comments on commit ac632e2

Please sign in to comment.