From 464a25a6782e363788ea561b5d49804612b5aaf4 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Tue, 21 Mar 2023 12:21:21 +0100 Subject: [PATCH] Widget: fix missing voucher in seating (Z#23118206) --- src/pretix/static/pretixpresale/js/widget/widget.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 8c046dcb5..c7e9e6d7c 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -1577,6 +1577,9 @@ var shared_root_methods = { redirect_url += '/' + this.$root.subevent; } redirect_url += '/seatingframe/?iframe=1&locale=' + lang; + if (this.$root.voucher_code) { + redirect_url += '&voucher=' + encodeURIComponent(this.$root.voucher_code); + } if (this.$root.cart_id) { redirect_url += '&take_cart_id=' + this.$root.cart_id; }