mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fixes
This commit is contained in:
14
doc/user/events/giftcards.rst
Normal file
14
doc/user/events/giftcards.rst
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Gift cards
|
||||||
|
==========
|
||||||
|
|
||||||
|
Gift cards, also known as "gift coupons" or "gift certificates" are a mechanism that allows you to sell tokens that
|
||||||
|
can later be used to pay for tickets.
|
||||||
|
|
||||||
|
Gift cards are very different feature than **vouchers**. The difference is:
|
||||||
|
|
||||||
|
* Vouchers can be used to give a discount. When a voucher is used, the price of a ticket is reduced by the configured
|
||||||
|
discount and sold at a lower price. They therefore reduce both revenue as well as taxes. Vouchers (in pretix) are
|
||||||
|
always specific to a certain product in an order. Vouchers are usually not sold but given out as part of a
|
||||||
|
marketing campaign or to specific groups of people.
|
||||||
|
|
||||||
|
* Gift cards are not a discount. If you buy a €20 ticket with a €10 gift card, it is still a €20 ticket and
|
||||||
@@ -12,5 +12,6 @@ wanting to use pretix to sell tickets.
|
|||||||
events/settings
|
events/settings
|
||||||
events/structureguide
|
events/structureguide
|
||||||
events/widget
|
events/widget
|
||||||
|
events/giftcards
|
||||||
faq
|
faq
|
||||||
markdown
|
markdown
|
||||||
|
|||||||
@@ -712,7 +712,7 @@ class ConfirmStep(CartMixin, AsyncAction, TemplateFlowStep):
|
|||||||
[p.id for p in self.positions], self.cart_session.get('email'),
|
[p.id for p in self.positions], self.cart_session.get('email'),
|
||||||
translation.get_language(), self.invoice_address.pk, meta_info,
|
translation.get_language(), self.invoice_address.pk, meta_info,
|
||||||
request.sales_channel, self.cart_session.get('gift_cards'),
|
request.sales_channel, self.cart_session.get('gift_cards'),
|
||||||
self.cart_session['shown_total'])
|
self.cart_session.get('shown_total'))
|
||||||
|
|
||||||
def get_success_message(self, value):
|
def get_success_message(self, value):
|
||||||
create_empty_cart_id(self.request)
|
create_empty_cart_id(self.request)
|
||||||
|
|||||||
@@ -1379,6 +1379,7 @@ class CheckoutTestCase(BaseCheckoutTestCase, TestCase):
|
|||||||
|
|
||||||
cr1.voucher = v
|
cr1.voucher = v
|
||||||
cr1.save()
|
cr1.save()
|
||||||
|
self.client.get('/%s/%s/checkout/confirm/' % (self.orga.slug, self.event.slug), follow=True)
|
||||||
response = self.client.post('/%s/%s/checkout/confirm/' % (self.orga.slug, self.event.slug), follow=True)
|
response = self.client.post('/%s/%s/checkout/confirm/' % (self.orga.slug, self.event.slug), follow=True)
|
||||||
doc = BeautifulSoup(response.rendered_content, "lxml")
|
doc = BeautifulSoup(response.rendered_content, "lxml")
|
||||||
self.assertEqual(len(doc.select(".thank-you")), 1)
|
self.assertEqual(len(doc.select(".thank-you")), 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user