Allow to redeem a voucher for an existing cart (#1517)

* Allow to redeem a voucher for an existing cart

* Bundle behaviour
This commit is contained in:
Raphael Michel
2019-12-11 15:58:22 +01:00
committed by GitHub
parent 352942b7d6
commit 99f3db04a9
8 changed files with 365 additions and 3 deletions

View File

@@ -70,4 +70,13 @@ $(function () {
if ($("#cart-deadline").length) {
cart.init();
}
$(".apply-voucher").hide();
$(".apply-voucher-toggle").click(function (e) {
$(".apply-voucher-toggle").hide();
$(".apply-voucher").show();
$(".apply-voucher input[ŧype=text]").first().focus();
e.preventDefault();
return true;
});
});

View File

@@ -73,6 +73,12 @@
}
}
.apply-voucher {
input {
height: 32px;
}
}
@media(max-width: $screen-sm-max) {
.cart-row {
.download-mobile {