wickes-css2 2.103.0-develop.13 → 2.103.0-develop.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/css/pages/tradePro-rewards.css +1 -1
- package/build/img/Barcode-simple.png +0 -0
- package/build/img/QR.png +0 -0
- package/build/js/page/billie-business-type.js +6 -11
- package/build/js/page/checkout-payment-details.js +0 -42
- package/package.json +2 -2
- package/src/components/address-billie.hbs +36 -38
- package/src/components/checkout-edit-billing-address.hbs +3 -1
- package/src/components/voucher.hbs +2 -2
- package/src/data/data_voucher_tradePro.json +44 -4
- package/src/img/Barcode-simple.png +0 -0
- package/src/img/QR.png +0 -0
- package/src/js/page/billie-business-type.js +6 -11
- package/src/js/page/checkout-payment-details.js +0 -42
- package/src/page_tradePro_rewards_QR.html +65 -0
- package/src/scss/pages/tradePro-rewards.scss +18 -1
- package/src/sitemap.html +4 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.modal-barcode .modal-box__container{padding:0}.modal-barcode .modal-box__container .barcode{width:100%}.modal-barcode .modal-box__container .barcode-wrap{height:100%;display:flex;justify-content:center;align-items:center;padding:40px;background:#fff}.modal-barcode .modal-box__container .barcode__discount{right:2.5rem}.modal-barcode .modal-box__container .barcode__container{padding:0}.modal-barcode .modal-box__container .barcode__container svg{height:100%;padding:15px 0}.modal-barcode .modal-box__container .barcode__footer{bottom:5px}.modal-barcode .modal-box__container .barcode__footer_text{margin-top:5px}.modal-barcode-targeted .barcode__header-info,.modal-barcode-targeted .barcode__header-title{text-align:center}.modal-barcode-targeted .barcode__header-title{font-weight:500;margin-bottom:5px}.rotation-wrap{position:absolute;bottom:15px}.rotation-wrap .phone{height:50px;width:100px;margin:40px auto 0;border:3px solid #0277bd;border-radius:10px;animation:1.5s ease-in-out infinite alternate rotate}.rotation-wrap .message{text-align:center;color:#cf000f;font-size:1em;margin-top:40px}.barcode-wrap{margin:0 auto;padding:15px;border:1px solid #ccc;position:relative}.barcode-wrap .icon svg{color:#8b8b8b;width:1rem;height:1rem}.barcode__header_name{font-weight:500;text-transform:capitalize}.barcode__container{padding:15px 0}.barcode__container svg{width:100%}.barcode__footer{text-align:center;position:relative}.barcode__footer_expand{display:none;text-align:center;font-weight:400;margin-top:10px}.barcode__footer_expand .icon svg{color:#0277bd}.barcode__discount{position:absolute;top:0;right:0}@keyframes rotate{0%{transform:rotate(0)}50%,to{transform:rotate(-90deg)}}@media (min-width:768px){.rotation-wrap{display:none}.page_tradePro-discount .modal-box_full,.page_tradePro-rewards .modal-box_full{background:#fff}.page_tradePro-discount .modal-box_full .modal-box__columns,.page_tradePro-discount .modal-box_full .modal-box__container,.page_tradePro-discount .modal-box_full .modal-box__content,.page_tradePro-discount .modal-box_full .modal-box__row,.page_tradePro-rewards .modal-box_full .modal-box__columns,.page_tradePro-rewards .modal-box_full .modal-box__container,.page_tradePro-rewards .modal-box_full .modal-box__content,.page_tradePro-rewards .modal-box_full .modal-box__row{height:100%}.page_tradePro-discount .modal-box_full .modal-box__container,.page_tradePro-rewards .modal-box_full .modal-box__container{margin-top:0;margin-bottom:0;max-width:none}.page_tradePro-discount .modal-box_full .modal-box__content,.page_tradePro-rewards .modal-box_full .modal-box__content{width:auto;box-shadow:none}.page_tradePro-discount .modal-box_full .modal-box__inner-row,.page_tradePro-rewards .modal-box_full .modal-box__inner-row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.page_tradePro-discount .modal-box__columns,.page_tradePro-rewards .modal-box__columns{flex:0 0 100%;max-width:100%}}@media (max-width:767.98px){.barcode-wrap{font-size:1rem}.barcode__footer_expand{display:block}.modal-barcode .barcode__footer_expand{display:none}}@media only screen and (orientation:landscape){.rotation-wrap{display:none}.modal-barcode .modal-box__container .barcode__container svg{height:60vh;padding:0}}@media only screen and (orientation:portrait){.modal-barcode .modal-box__container .barcode-wrap{align-items:inherit}}.text-start{text-align:left}.page_tradePro-rewards .voucher__grid{display:-ms-grid;display:grid;-ms-grid-columns:(1fr)[1];grid-template-columns:repeat(1,1fr);-ms-grid-rows:auto;grid-template-rows:auto;grid-auto-flow:dense;gap:16px}.page_tradePro-rewards .voucher__cell{border-radius:.25rem}.page_tradePro-rewards .voucher__cell:not(.voucher__description){min-height:240px}.page_tradePro-rewards .voucher__column{grid-area:auto;text-align:center}.page_tradePro-rewards .voucher__column .voucher__cell{border:1px solid #ccc;overflow:hidden}.page_tradePro-rewards .voucher__column .voucher__cell:first-child{margin-bottom:16px}.page_tradePro-rewards .voucher__image-wrap{height:100%}.page_tradePro-rewards .voucher__image-wrap img{width:100%;height:auto}.page_tradePro-rewards .voucher__barcode-img{width:311px;height:78px;margin:auto}.page_tradePro-rewards .voucher__barcode-img>*{width:100%;height:100%}@media (min-width:992px){.page_tradePro-rewards .voucher__grid{-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr);-ms-grid-rows:246px;grid-template-rows:246px;gap:24px}.page_tradePro-rewards .voucher__cell:not(.voucher__description){min-height:246px}.page_tradePro-rewards .voucher__column{-ms-grid-row:1;-ms-grid-row-span:2;-ms-grid-column:2;-ms-grid-column-span:1;grid-area:1/2/3/3}.page_tradePro-rewards .voucher__column .voucher__cell:first-child{margin-bottom:24px}.page_tradePro-rewards .voucher__image-wrap img{width:auto;height:100%}.page_tradePro-rewards .voucher__barcode-img{width:261px;height:66px}}@media (min-width:1200px){.page_tradePro-rewards .voucher__grid{-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr);-ms-grid-rows:296px;grid-template-rows:296px;gap:24px}.page_tradePro-rewards .voucher__cell:not(.voucher__description){min-height:296px}.page_tradePro-rewards .voucher__barcode-img{width:450px;height:114px}}.page_tradePro-rewards .voucher__barcode-number{margin-top:
|
|
1
|
+
.modal-barcode .modal-box__container{padding:0}.modal-barcode .modal-box__container .barcode{width:100%}.modal-barcode .modal-box__container .barcode-wrap{height:100%;display:flex;justify-content:center;align-items:center;padding:40px;background:#fff}.modal-barcode .modal-box__container .barcode__discount{right:2.5rem}.modal-barcode .modal-box__container .barcode__container{padding:0}.modal-barcode .modal-box__container .barcode__container svg{height:100%;padding:15px 0}.modal-barcode .modal-box__container .barcode__footer{bottom:5px}.modal-barcode .modal-box__container .barcode__footer_text{margin-top:5px}.modal-barcode-targeted .barcode__header-info,.modal-barcode-targeted .barcode__header-title{text-align:center}.modal-barcode-targeted .barcode__header-title{font-weight:500;margin-bottom:5px}.rotation-wrap{position:absolute;bottom:15px}.rotation-wrap .phone{height:50px;width:100px;margin:40px auto 0;border:3px solid #0277bd;border-radius:10px;animation:1.5s ease-in-out infinite alternate rotate}.rotation-wrap .message{text-align:center;color:#cf000f;font-size:1em;margin-top:40px}.barcode-wrap{margin:0 auto;padding:15px;border:1px solid #ccc;position:relative}.barcode-wrap .icon svg{color:#8b8b8b;width:1rem;height:1rem}.barcode__header_name{font-weight:500;text-transform:capitalize}.barcode__container{padding:15px 0}.barcode__container svg{width:100%}.barcode__footer{text-align:center;position:relative}.barcode__footer_expand{display:none;text-align:center;font-weight:400;margin-top:10px}.barcode__footer_expand .icon svg{color:#0277bd}.barcode__discount{position:absolute;top:0;right:0}@keyframes rotate{0%{transform:rotate(0)}50%,to{transform:rotate(-90deg)}}@media (min-width:768px){.rotation-wrap{display:none}.page_tradePro-discount .modal-box_full,.page_tradePro-rewards .modal-box_full{background:#fff}.page_tradePro-discount .modal-box_full .modal-box__columns,.page_tradePro-discount .modal-box_full .modal-box__container,.page_tradePro-discount .modal-box_full .modal-box__content,.page_tradePro-discount .modal-box_full .modal-box__row,.page_tradePro-rewards .modal-box_full .modal-box__columns,.page_tradePro-rewards .modal-box_full .modal-box__container,.page_tradePro-rewards .modal-box_full .modal-box__content,.page_tradePro-rewards .modal-box_full .modal-box__row{height:100%}.page_tradePro-discount .modal-box_full .modal-box__container,.page_tradePro-rewards .modal-box_full .modal-box__container{margin-top:0;margin-bottom:0;max-width:none}.page_tradePro-discount .modal-box_full .modal-box__content,.page_tradePro-rewards .modal-box_full .modal-box__content{width:auto;box-shadow:none}.page_tradePro-discount .modal-box_full .modal-box__inner-row,.page_tradePro-rewards .modal-box_full .modal-box__inner-row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.page_tradePro-discount .modal-box__columns,.page_tradePro-rewards .modal-box__columns{flex:0 0 100%;max-width:100%}}@media (max-width:767.98px){.barcode-wrap{font-size:1rem}.barcode__footer_expand{display:block}.modal-barcode .barcode__footer_expand{display:none}}@media only screen and (orientation:landscape){.rotation-wrap{display:none}.modal-barcode .modal-box__container .barcode__container svg{height:60vh;padding:0}}@media only screen and (orientation:portrait){.modal-barcode .modal-box__container .barcode-wrap{align-items:inherit}}.text-start{text-align:left}.page_tradePro-rewards .voucher__grid{display:-ms-grid;display:grid;-ms-grid-columns:(1fr)[1];grid-template-columns:repeat(1,1fr);-ms-grid-rows:auto;grid-template-rows:auto;grid-auto-flow:dense;gap:16px}.page_tradePro-rewards .voucher__cell{border-radius:.25rem}.page_tradePro-rewards .voucher__cell:not(.voucher__description){min-height:240px}.page_tradePro-rewards .voucher__column{grid-area:auto;text-align:center}.page_tradePro-rewards .voucher__column .voucher__cell{border:1px solid #ccc;overflow:hidden}.page_tradePro-rewards .voucher__column .voucher__cell:first-child{margin-bottom:16px}.page_tradePro-rewards .voucher__image-wrap{height:100%}.page_tradePro-rewards .voucher__image-wrap img{width:100%;height:auto}.page_tradePro-rewards .voucher__barcode-img{width:311px;height:78px;margin:auto}.page_tradePro-rewards .voucher__barcode-img>*{width:100%;height:100%}@media (min-width:992px){.page_tradePro-rewards .voucher__grid{-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr);-ms-grid-rows:246px;grid-template-rows:246px;gap:24px}.page_tradePro-rewards .voucher__cell:not(.voucher__description){min-height:246px}.page_tradePro-rewards .voucher__column{-ms-grid-row:1;-ms-grid-row-span:2;-ms-grid-column:2;-ms-grid-column-span:1;grid-area:1/2/3/3}.page_tradePro-rewards .voucher__column .voucher__cell:first-child{margin-bottom:24px}.page_tradePro-rewards .voucher__image-wrap img{width:auto;height:100%}.page_tradePro-rewards .voucher__barcode-img{width:261px;height:66px}}@media (min-width:1200px){.page_tradePro-rewards .voucher__grid{-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr);-ms-grid-rows:296px;grid-template-rows:296px;gap:24px}.page_tradePro-rewards .voucher__cell:not(.voucher__description){min-height:296px}.page_tradePro-rewards .voucher__barcode-img{width:450px;height:114px}}.page_tradePro-rewards .voucher__qr-img{width:183px;height:183px;margin:auto}.page_tradePro-rewards .voucher__qr-img>*{width:100%;height:100%}.page_tradePro-rewards .voucher__barcode-number{margin-top:8px;word-break:break-word}.page_tradePro-rewards .voucher__label{background:#0a3055;color:#fff;display:block;padding:4px;font-size:.75rem;font-weight:500}.page_tradePro-rewards .voucher__code-field{display:inline-block;padding:8px 16px;background:#f4f9fe;border-radius:.25rem;cursor:pointer}.page_tradePro-rewards .voucher__code-field input{background:0 0;border:0;width:90px;pointer-events:none}.page_tradePro-rewards .voucher__code-field .icon{color:#0277bd}.page_tradePro-rewards .voucher__code-title{margin-right:8px;font-weight:700}.page_tradePro-rewards .voucher__description-title{font-weight:700;font-size:1rem}.page_tradePro-rewards .voucher__description-text{font-weight:400;font-size:.875rem}.page_tradePro-rewards .voucher__description-button{margin-top:16px}.page_tradePro-rewards .voucher__content{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;padding:24px 16px}.page_tradePro-rewards .voucher--terms{padding:24px 0 16px}@media (min-width:768px){.page_tradePro-rewards .voucher__qr-img{width:166px;height:166px}.page_tradePro-rewards .voucher__content{padding:24px}}
|
|
Binary file
|
package/build/img/QR.png
ADDED
|
Binary file
|
|
@@ -3,32 +3,27 @@ var Wick = window.Wick || {};
|
|
|
3
3
|
Wick.BusinessType = {
|
|
4
4
|
el: {
|
|
5
5
|
radios: 'input[name="businessType"]',
|
|
6
|
-
panels: '.radio-expanded-content'
|
|
7
|
-
hiddenClass: 'd-none',
|
|
6
|
+
panels: '.radio-expanded-content'
|
|
8
7
|
},
|
|
9
8
|
|
|
10
9
|
refreshPanels() {
|
|
11
10
|
const $radios = $(this.el.radios);
|
|
12
11
|
const $panels = $(this.el.panels);
|
|
13
|
-
const
|
|
12
|
+
const selectedValue = $radios.filter(':checked').val();
|
|
14
13
|
|
|
15
|
-
$panels.
|
|
16
|
-
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const selectedValue = $checked.val();
|
|
21
|
-
$(`#${selectedValue}-fields`).removeClass(this.el.hiddenClass);
|
|
14
|
+
$panels.hide();
|
|
15
|
+
$(`#${selectedValue}-fields`).show();
|
|
22
16
|
},
|
|
23
17
|
|
|
24
18
|
bindEvents() {
|
|
25
|
-
$(
|
|
19
|
+
$(this.el.radios).on('change', this.refreshPanels.bind(this));
|
|
26
20
|
},
|
|
27
21
|
|
|
28
22
|
init() {
|
|
29
23
|
if (!$(this.el.radios).length) {
|
|
30
24
|
return;
|
|
31
25
|
}
|
|
26
|
+
|
|
32
27
|
this.refreshPanels();
|
|
33
28
|
this.bindEvents();
|
|
34
29
|
}
|
|
@@ -14,10 +14,6 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
14
14
|
$placeOrder: $('.checkout-payment-details__place-order'),
|
|
15
15
|
$billingAddress: $('.billing-address'),
|
|
16
16
|
hiddenCardDetailsClass: 'checkout-payment-details__card-details_hidden',
|
|
17
|
-
$billieBusiness: $('[data-billie-business]'),
|
|
18
|
-
businessTypeName: '[name="businessType"]',
|
|
19
|
-
$unregisteredFields: $('#unregistered-fields'),
|
|
20
|
-
$registeredFields: $('#registered-fields'),
|
|
21
17
|
hiddenClass: 'd-none',
|
|
22
18
|
}
|
|
23
19
|
|
|
@@ -56,36 +52,7 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
56
52
|
})
|
|
57
53
|
}
|
|
58
54
|
|
|
59
|
-
function showBillieBusiness() {
|
|
60
|
-
elements.$billieBusiness.removeClass(elements.hiddenClass);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function hideBillieBusiness() {
|
|
64
|
-
elements.$billieBusiness.addClass(elements.hiddenClass);
|
|
65
|
-
|
|
66
|
-
elements.$unregisteredFields
|
|
67
|
-
.addClass(elements.hiddenClass)
|
|
68
|
-
.removeAttr('style');
|
|
69
|
-
|
|
70
|
-
elements.$registeredFields
|
|
71
|
-
.addClass(elements.hiddenClass)
|
|
72
|
-
.removeAttr('style');
|
|
73
|
-
|
|
74
|
-
elements.$billieBusiness.find('input[type="radio"]').prop('checked', false);
|
|
75
|
-
elements.$billieBusiness.find('input.tbx').val('');
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function toggleBusinessTypeFields(type) {
|
|
79
|
-
const isUnregistered = type === 'unregistered';
|
|
80
|
-
const isRegistered = type === 'registered';
|
|
81
|
-
|
|
82
|
-
elements.$unregisteredFields.toggleClass(elements.hiddenClass, !isUnregistered);
|
|
83
|
-
elements.$registeredFields.toggleClass(elements.hiddenClass, !isRegistered);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
55
|
function changeDetailsBlock(checkedMethod) {
|
|
88
|
-
if (checkedMethod !== 'billie') hideBillieBusiness();
|
|
89
56
|
switch(checkedMethod) {
|
|
90
57
|
case 'paypal':
|
|
91
58
|
hideCardDetails();
|
|
@@ -102,7 +69,6 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
102
69
|
buttonText: 'Pay with Billie'
|
|
103
70
|
}
|
|
104
71
|
changeLabelText(detailsLabel);
|
|
105
|
-
showBillieBusiness();
|
|
106
72
|
break;
|
|
107
73
|
case 'clearpay':
|
|
108
74
|
detailsLabel = {
|
|
@@ -169,16 +135,8 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
169
135
|
elements.$placeOrder.addClass(elements.hiddenClass);
|
|
170
136
|
}
|
|
171
137
|
|
|
172
|
-
function initBillieBusinessTypeToggle() {
|
|
173
|
-
$(document).on('change', elements.businessTypeName, function () {
|
|
174
|
-
toggleBusinessTypeFields($(this).val());
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
|
|
178
138
|
function init() {
|
|
179
139
|
const paymentMethods = getPaymentMethods();
|
|
180
|
-
initBillieBusinessTypeToggle();
|
|
181
|
-
hideBillieBusiness();
|
|
182
140
|
|
|
183
141
|
elements.$wrapperPaymentInput.on('change', elements.paymentInputName, function() {
|
|
184
142
|
const checkedMethod = $(this).val();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wickes-css2",
|
|
3
|
-
"version": "2.103.0-develop.
|
|
3
|
+
"version": "2.103.0-develop.14",
|
|
4
4
|
"description": "CSS and JS and page templates in use by Wickes",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"branches": [
|
|
124
124
|
"alt-master",
|
|
125
125
|
{
|
|
126
|
-
"name": "
|
|
126
|
+
"name": "develop",
|
|
127
127
|
"prerelease": "${name.replace(/^custom-tag\\//g, '')}"
|
|
128
128
|
}
|
|
129
129
|
],
|
|
@@ -1,44 +1,42 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
</label>
|
|
1
|
+
<div class="form-row radio-group" data-row-required>
|
|
2
|
+
<label class="form-row__label form-row__label_required">
|
|
3
|
+
Select your business type
|
|
4
|
+
</label>
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="form-row">
|
|
17
|
-
<div class="form-row__field">
|
|
18
|
-
{{> radiobutton
|
|
19
|
-
id="businessTypeRegistered"
|
|
20
|
-
name="businessType"
|
|
21
|
-
value="registered"
|
|
22
|
-
labelClass="registered-label"
|
|
23
|
-
label="Registered Sole Trader / Business"
|
|
24
|
-
tooltip="A Registered Business is one that has undergone the official process of being recognised and registered with Companies House, establishing its legal identity and enabling it to operate within a specific jurisdiction, such as a limited company. A Registered Business will have been issued a Company Registration Number (CRN) from Companies House."}}
|
|
25
|
-
</div>
|
|
6
|
+
<div class="form-row">
|
|
7
|
+
<div class="form-row__field">
|
|
8
|
+
{{> radiobutton
|
|
9
|
+
id="businessTypeUnregistered"
|
|
10
|
+
name="businessType"
|
|
11
|
+
value="unregistered"
|
|
12
|
+
label="Unregistered Sole Trader / Business"}}
|
|
26
13
|
</div>
|
|
27
14
|
</div>
|
|
28
|
-
<div
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
<div class="form-row">
|
|
16
|
+
<div class="form-row__field">
|
|
17
|
+
{{> radiobutton
|
|
18
|
+
id="businessTypeRegistered"
|
|
19
|
+
name="businessType"
|
|
20
|
+
value="registered"
|
|
21
|
+
labelClass="registered-label"
|
|
22
|
+
label="Registered Sole Trader / Business"
|
|
23
|
+
tooltip="A Registered Business is one that has undergone the official process of being recognised and registered with Companies House, establishing its legal identity and enabling it to operate within a specific jurisdiction, such as a limited company. A Registered Business will have been issued a Company Registration Number (CRN) from Companies House."}}
|
|
24
|
+
</div>
|
|
35
25
|
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div
|
|
28
|
+
id="unregistered-fields"
|
|
29
|
+
class="radio-expanded-content"
|
|
30
|
+
>
|
|
31
|
+
{{> form-row id="first-name" label="First name" required="true" row-mod="first-name"}}
|
|
32
|
+
{{> form-row id="last-name" label="Last name" required="true" row-mod="last-name"}}
|
|
33
|
+
{{> form-row id="business-name" label="Business name" required="true" row-mod="unregistered-business"}}
|
|
34
|
+
</div>
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</div>
|
|
36
|
+
<div
|
|
37
|
+
id="registered-fields"
|
|
38
|
+
class="radio-expanded-content"
|
|
39
|
+
>
|
|
40
|
+
{{> form-row id="business-name-2" label="Business name" required="true" row-mod="registered-business"}}
|
|
41
|
+
{{> form-row id="company-reg-number" label="Company registration number" row-mod="reg-number"}}
|
|
44
42
|
</div>
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
</div>
|
|
53
53
|
<div class="mt-3">
|
|
54
54
|
<div class="voucher__code-title mb-2">Code:</div>
|
|
55
|
-
<div class="voucher__barcode-img">
|
|
56
|
-
<
|
|
55
|
+
<div class="{{#if instore.isQR}}voucher__qr-img{{else}}voucher__barcode-img{{/if}}">
|
|
56
|
+
<img src="{{instore.barcodeImgSrc}}" alt="{{instore.barcodeImgAlt}}">
|
|
57
57
|
</div>
|
|
58
58
|
<div class="voucher__barcode-number mb-3">{{instore.barcodeNumber}}</div>
|
|
59
59
|
{{#ifCond instore.buttonLink "&&" instore.buttonText}}
|
|
@@ -12,8 +12,40 @@
|
|
|
12
12
|
"expiration": "Offer ends: 1st October 2025",
|
|
13
13
|
"barcodeNumber": "00016221000711490",
|
|
14
14
|
"buttonText": "Redeem now",
|
|
15
|
+
"buttonLink": "#",
|
|
16
|
+
"barcodeImgSrc": "./img/Barcode-simple.png",
|
|
17
|
+
"barcodeImgAlt": "Barcode image"
|
|
18
|
+
},
|
|
19
|
+
"online": {
|
|
20
|
+
"label": "Type: Online",
|
|
21
|
+
"title": "Exclusive £4.99 all you can eat breakfast",
|
|
22
|
+
"note": "Offer ends: 1st October 2025",
|
|
23
|
+
"code": "WKBREAKFAST1023",
|
|
24
|
+
"buttonText": "Redeem now",
|
|
15
25
|
"buttonLink": "#"
|
|
16
26
|
},
|
|
27
|
+
"description": {
|
|
28
|
+
"short": "Exclusive £4.99 all you can eat breakfast.",
|
|
29
|
+
"long": "As a TradePro member, enjoy an exclusive discount Monday to Friday on all you can eat breakfast at Toby Carvery. <b>Redeem now! Hurry, ends 1st October.</b>"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"qr": {
|
|
33
|
+
"title":"£4.99 unlimited breakfast. Ends October 1st",
|
|
34
|
+
"isOnline": false,
|
|
35
|
+
"isInstore": true,
|
|
36
|
+
"img": "./img/placeholders/img-placeholder-rewards.png",
|
|
37
|
+
"imgAlt": "Voucher image",
|
|
38
|
+
"instore": {
|
|
39
|
+
"label": "Type: Online & In-store ",
|
|
40
|
+
"title": "Exclusive £4.99 all you can eat breakfast.",
|
|
41
|
+
"expiration": "Offer ends: 1st October 2025",
|
|
42
|
+
"barcodeNumber": "00016221000711490",
|
|
43
|
+
"buttonText": "Redeem now",
|
|
44
|
+
"buttonLink": "#",
|
|
45
|
+
"isQR": true,
|
|
46
|
+
"barcodeImgSrc": "./img/QR.png",
|
|
47
|
+
"barcodeImgAlt": "QR image"
|
|
48
|
+
},
|
|
17
49
|
"online": {
|
|
18
50
|
"label": "Type: Online",
|
|
19
51
|
"title": "Exclusive £4.99 all you can eat breakfast",
|
|
@@ -39,7 +71,9 @@
|
|
|
39
71
|
"expiration": "Offer ends: 1st October 2025",
|
|
40
72
|
"barcodeNumber": "00016221000711490",
|
|
41
73
|
"buttonText": "Redeem now",
|
|
42
|
-
"buttonLink": "#"
|
|
74
|
+
"buttonLink": "#",
|
|
75
|
+
"barcodeImgSrc": "./img/Barcode-simple.png",
|
|
76
|
+
"barcodeImgAlt": "Barcode image"
|
|
43
77
|
},
|
|
44
78
|
"online": {
|
|
45
79
|
"label": "Type: Online",
|
|
@@ -66,7 +100,9 @@
|
|
|
66
100
|
"expiration": "Offer ends: 1st October 2025",
|
|
67
101
|
"barcodeNumber": "00016221000711490",
|
|
68
102
|
"buttonText": "Redeem now",
|
|
69
|
-
"buttonLink": "#"
|
|
103
|
+
"buttonLink": "#",
|
|
104
|
+
"barcodeImgSrc": "./img/Barcode-simple.png",
|
|
105
|
+
"barcodeImgAlt": "Barcode image"
|
|
70
106
|
},
|
|
71
107
|
"online": {
|
|
72
108
|
"label": "Type: Online",
|
|
@@ -93,7 +129,9 @@
|
|
|
93
129
|
"expiration": "Offer ends: 1st October 2025",
|
|
94
130
|
"barcodeNumber": "00016221000711490",
|
|
95
131
|
"buttonText": "Redeem now",
|
|
96
|
-
"buttonLink": "#"
|
|
132
|
+
"buttonLink": "#",
|
|
133
|
+
"barcodeImgSrc": "./img/Barcode-simple.png",
|
|
134
|
+
"barcodeImgAlt": "Barcode image"
|
|
97
135
|
},
|
|
98
136
|
"online": {
|
|
99
137
|
"label": "Type: Online",
|
|
@@ -120,7 +158,9 @@
|
|
|
120
158
|
"expiration": "Offer ends: 1st October 2025",
|
|
121
159
|
"barcodeNumber": "00016221000711490",
|
|
122
160
|
"buttonText": "Redeem now",
|
|
123
|
-
"buttonLink": "#"
|
|
161
|
+
"buttonLink": "#",
|
|
162
|
+
"barcodeImgSrc": "./img/Barcode-simple.png",
|
|
163
|
+
"barcodeImgAlt": "Barcode image"
|
|
124
164
|
},
|
|
125
165
|
"online": {
|
|
126
166
|
"label": "Type: Online",
|
|
Binary file
|
package/src/img/QR.png
ADDED
|
Binary file
|
|
@@ -3,32 +3,27 @@ var Wick = window.Wick || {};
|
|
|
3
3
|
Wick.BusinessType = {
|
|
4
4
|
el: {
|
|
5
5
|
radios: 'input[name="businessType"]',
|
|
6
|
-
panels: '.radio-expanded-content'
|
|
7
|
-
hiddenClass: 'd-none',
|
|
6
|
+
panels: '.radio-expanded-content'
|
|
8
7
|
},
|
|
9
8
|
|
|
10
9
|
refreshPanels() {
|
|
11
10
|
const $radios = $(this.el.radios);
|
|
12
11
|
const $panels = $(this.el.panels);
|
|
13
|
-
const
|
|
12
|
+
const selectedValue = $radios.filter(':checked').val();
|
|
14
13
|
|
|
15
|
-
$panels.
|
|
16
|
-
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const selectedValue = $checked.val();
|
|
21
|
-
$(`#${selectedValue}-fields`).removeClass(this.el.hiddenClass);
|
|
14
|
+
$panels.hide();
|
|
15
|
+
$(`#${selectedValue}-fields`).show();
|
|
22
16
|
},
|
|
23
17
|
|
|
24
18
|
bindEvents() {
|
|
25
|
-
$(
|
|
19
|
+
$(this.el.radios).on('change', this.refreshPanels.bind(this));
|
|
26
20
|
},
|
|
27
21
|
|
|
28
22
|
init() {
|
|
29
23
|
if (!$(this.el.radios).length) {
|
|
30
24
|
return;
|
|
31
25
|
}
|
|
26
|
+
|
|
32
27
|
this.refreshPanels();
|
|
33
28
|
this.bindEvents();
|
|
34
29
|
}
|
|
@@ -14,10 +14,6 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
14
14
|
$placeOrder: $('.checkout-payment-details__place-order'),
|
|
15
15
|
$billingAddress: $('.billing-address'),
|
|
16
16
|
hiddenCardDetailsClass: 'checkout-payment-details__card-details_hidden',
|
|
17
|
-
$billieBusiness: $('[data-billie-business]'),
|
|
18
|
-
businessTypeName: '[name="businessType"]',
|
|
19
|
-
$unregisteredFields: $('#unregistered-fields'),
|
|
20
|
-
$registeredFields: $('#registered-fields'),
|
|
21
17
|
hiddenClass: 'd-none',
|
|
22
18
|
}
|
|
23
19
|
|
|
@@ -56,36 +52,7 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
56
52
|
})
|
|
57
53
|
}
|
|
58
54
|
|
|
59
|
-
function showBillieBusiness() {
|
|
60
|
-
elements.$billieBusiness.removeClass(elements.hiddenClass);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function hideBillieBusiness() {
|
|
64
|
-
elements.$billieBusiness.addClass(elements.hiddenClass);
|
|
65
|
-
|
|
66
|
-
elements.$unregisteredFields
|
|
67
|
-
.addClass(elements.hiddenClass)
|
|
68
|
-
.removeAttr('style');
|
|
69
|
-
|
|
70
|
-
elements.$registeredFields
|
|
71
|
-
.addClass(elements.hiddenClass)
|
|
72
|
-
.removeAttr('style');
|
|
73
|
-
|
|
74
|
-
elements.$billieBusiness.find('input[type="radio"]').prop('checked', false);
|
|
75
|
-
elements.$billieBusiness.find('input.tbx').val('');
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function toggleBusinessTypeFields(type) {
|
|
79
|
-
const isUnregistered = type === 'unregistered';
|
|
80
|
-
const isRegistered = type === 'registered';
|
|
81
|
-
|
|
82
|
-
elements.$unregisteredFields.toggleClass(elements.hiddenClass, !isUnregistered);
|
|
83
|
-
elements.$registeredFields.toggleClass(elements.hiddenClass, !isRegistered);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
55
|
function changeDetailsBlock(checkedMethod) {
|
|
88
|
-
if (checkedMethod !== 'billie') hideBillieBusiness();
|
|
89
56
|
switch(checkedMethod) {
|
|
90
57
|
case 'paypal':
|
|
91
58
|
hideCardDetails();
|
|
@@ -102,7 +69,6 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
102
69
|
buttonText: 'Pay with Billie'
|
|
103
70
|
}
|
|
104
71
|
changeLabelText(detailsLabel);
|
|
105
|
-
showBillieBusiness();
|
|
106
72
|
break;
|
|
107
73
|
case 'clearpay':
|
|
108
74
|
detailsLabel = {
|
|
@@ -169,16 +135,8 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
169
135
|
elements.$placeOrder.addClass(elements.hiddenClass);
|
|
170
136
|
}
|
|
171
137
|
|
|
172
|
-
function initBillieBusinessTypeToggle() {
|
|
173
|
-
$(document).on('change', elements.businessTypeName, function () {
|
|
174
|
-
toggleBusinessTypeFields($(this).val());
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
|
|
178
138
|
function init() {
|
|
179
139
|
const paymentMethods = getPaymentMethods();
|
|
180
|
-
initBillieBusinessTypeToggle();
|
|
181
|
-
hideBillieBusiness();
|
|
182
140
|
|
|
183
141
|
elements.$wrapperPaymentInput.on('change', elements.paymentInputName, function() {
|
|
184
142
|
const checkedMethod = $(this).val();
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{{#extend
|
|
2
|
+
"my-account-v2"
|
|
3
|
+
pageClass="page_tradePro-rewards"
|
|
4
|
+
title="TradePro Rewards"
|
|
5
|
+
logo-tp=true
|
|
6
|
+
tradepro-nav=true
|
|
7
|
+
pageMyAcc=true
|
|
8
|
+
myAccV2=true
|
|
9
|
+
isLoggedIn=true
|
|
10
|
+
mainClass="pt-0"
|
|
11
|
+
dataBreadcrumbs=my_account.tradeProRewards.breadcrumbsDetailsPage
|
|
12
|
+
}}
|
|
13
|
+
{{#content "head" mode="append"}}
|
|
14
|
+
<link type="text/css" rel="stylesheet" href="./css/pages/tradePro-rewards.css">
|
|
15
|
+
{{/content}}
|
|
16
|
+
{{#content "main"}}
|
|
17
|
+
<div class="container">
|
|
18
|
+
<div class="row">
|
|
19
|
+
<div class="col-12">
|
|
20
|
+
{{> my-account/mobile-nav
|
|
21
|
+
menu=my_account.tradepro.menu
|
|
22
|
+
active-index=4
|
|
23
|
+
page-name=my_account.tradepro.menu.[4].title
|
|
24
|
+
}}
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div class="container top-indent">
|
|
30
|
+
<div class="row">
|
|
31
|
+
<div class="col-12">
|
|
32
|
+
{{#with page_tradePro_vouchers.qr}}
|
|
33
|
+
<h1 class="text-start">{{title}}</h1>
|
|
34
|
+
{{> voucher}}
|
|
35
|
+
{{/with}}
|
|
36
|
+
{{#extend "accordion" header=page_tradePro_vouchers.terms.title collapsed="accordion_collapsed voucher--terms" hidden="hidden-state"}}
|
|
37
|
+
{{#content "content"}}{{page_tradePro_vouchers.terms.text}}{{/content}}
|
|
38
|
+
{{/extend}}
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
{{#extend "cards-slider"
|
|
44
|
+
title="Other TradePro Rewards"
|
|
45
|
+
secondary=true
|
|
46
|
+
}}
|
|
47
|
+
{{#content "cards"}}
|
|
48
|
+
{{#each page_tradePro_cards.reward_cards}}
|
|
49
|
+
{{> reward_card
|
|
50
|
+
modificator="swiper-slide"
|
|
51
|
+
imgSrc=imgSrc
|
|
52
|
+
title=title
|
|
53
|
+
description=description
|
|
54
|
+
btnText=btnText
|
|
55
|
+
btnUrl=btnUrl
|
|
56
|
+
}}
|
|
57
|
+
{{/each}}
|
|
58
|
+
{{/content}}
|
|
59
|
+
{{/extend}}
|
|
60
|
+
|
|
61
|
+
{{/content}}
|
|
62
|
+
{{#content "foot" mode="append"}}
|
|
63
|
+
<script defer src="./js/tradePro-rewards.min.js"></script>
|
|
64
|
+
{{/content}}
|
|
65
|
+
{{/extend}}
|
|
@@ -105,8 +105,25 @@ $voucher-cell-height-xl: 296px;
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
&__qr-img {
|
|
109
|
+
width: 183px;
|
|
110
|
+
height: 183px;
|
|
111
|
+
margin: auto;
|
|
112
|
+
|
|
113
|
+
& > * {
|
|
114
|
+
width: 100%;
|
|
115
|
+
height: 100%;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@include media-breakpoint-up(md) {
|
|
119
|
+
width: 166px;
|
|
120
|
+
height: 166px;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
108
124
|
&__barcode-number {
|
|
109
|
-
margin-top:
|
|
125
|
+
margin-top: 8px;
|
|
126
|
+
word-break: break-word;
|
|
110
127
|
}
|
|
111
128
|
|
|
112
129
|
&__label {
|
package/src/sitemap.html
CHANGED
|
@@ -717,6 +717,10 @@
|
|
|
717
717
|
<span class="page-id">10.16</span>
|
|
718
718
|
<a href="page_tradePro_rewards_instoreAndOnline.html" target="_blank">TradePro Rewards In-store & Online</a>
|
|
719
719
|
</li>
|
|
720
|
+
<li>
|
|
721
|
+
<span class="page-id"></span>
|
|
722
|
+
<a href="page_tradePro_rewards_QR.html" target="_blank">TradePro Rewards QR</a>
|
|
723
|
+
</li>
|
|
720
724
|
<li>
|
|
721
725
|
<span class="page-id">10.17</span>
|
|
722
726
|
<a href="page_tradePro_rewards_noInstoreAndOnline.html" target="_blank">TradePro Rewards No barcode & No Online Code Reward</a>
|