Skip to content

Commit 7edec05

Browse files
Merge pull request #1107 from buckaroo-it/BP-3905-Missing-separator-in-the-checkout-between-Giftcards-and-Riverty
Bp 3905 missing separator in the checkout between giftcards and riverty
2 parents 7cadc5d + 74a444b commit 7edec05

File tree

1 file changed

+59
-59
lines changed

1 file changed

+59
-59
lines changed

view/frontend/web/template/payment/buckaroo_magento2_giftcards.html

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
class="radio"
99
data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
1010
<label class="label" data-bind="attr: {'for': getCode()}" >
11-
<!-- ko text: getTitle() --><!-- /ko -->
12-
<!-- ko if: subtext !== null && subtext.length > 0 -->
13-
<p class="bk-description" data-bind="text: subtext, style: subTextStyle"></p>
14-
<!-- /ko -->
11+
<!-- ko text: getTitle() --><!-- /ko -->
12+
<!-- ko if: subtext !== null && subtext.length > 0 -->
13+
<p class="bk-description" data-bind="text: subtext, style: subTextStyle"></p>
14+
<!-- /ko -->
1515
</label>
1616
</div>
1717
<div class="bk-img-wrap">
@@ -66,25 +66,25 @@
6666

6767
<!-- ko ifnot: isGiftcardsRedirectMode() -->
6868

69-
<div class="buckaroo_magento2_all_giftcards" data-bind="foreach: { data: allgiftcards, as: 'giftcard', noChildContext: false }">
69+
<div class="buckaroo_magento2_all_giftcards" data-bind="foreach: { data: allgiftcards, as: 'giftcard', noChildContext: false }">
7070
<div data-bind="attr: { 'class': 'buckaroo_magento2_all_giftcard payment-method buckaroo_magento2_' + code }, css: {'_active': ($parent.getCode() == $parent.isChecked() && $parent.getGiftcardType() == code)}">
7171

72-
<div class="payment-method-title field choice bk-payment">
73-
<div class="bk-payment-wrap">
74-
<div class="bk-radio-wrap">
75-
<input type="radio"
76-
name="payment[method]"
77-
class="radio"
78-
data-bind="attr: {'id': code, 'data-method': 'buckaroo_magento2_giftcards'}, value: code, click: $parent.selectGiftCardPaymentMethod.bind($parent, code), checked: $parent.isCheckedGiftCardPaymentMethod.bind($parent, code), visible: $parent.isRadioButtonVisible()"/>
79-
<label class="label" data-bind="attr: {'for': code}" >
80-
<!-- ko text: title --><!-- /ko -->
81-
</label>
82-
</div>
83-
<div class="bk-img-wrap">
84-
<img data-bind="attr: { src: logo }" />
72+
<div class="payment-method-title field choice bk-payment">
73+
<div class="bk-payment-wrap">
74+
<div class="bk-radio-wrap">
75+
<input type="radio"
76+
name="payment[method]"
77+
class="radio"
78+
data-bind="attr: {'id': code, 'data-method': 'buckaroo_magento2_giftcards'}, value: code, click: $parent.selectGiftCardPaymentMethod.bind($parent, code), checked: $parent.isCheckedGiftCardPaymentMethod.bind($parent, code), visible: $parent.isRadioButtonVisible()"/>
79+
<label class="label" data-bind="attr: {'for': code}" >
80+
<!-- ko text: title --><!-- /ko -->
81+
</label>
82+
</div>
83+
<div class="bk-img-wrap">
84+
<img data-bind="attr: { src: logo }" />
85+
</div>
8586
</div>
8687
</div>
87-
</div>
8888

8989
<div class="payment-method-content">
9090
<!-- ko foreach: $parent.getRegion('messages') -->
@@ -93,77 +93,77 @@
9393

9494
<div class="payment-method-billing-address">
9595
<!-- ko foreach: $parent.getRegion($parent.getBillingAddressFormName()) -->
96-
<!-- ko template: getTemplate()--><!-- /ko -->
96+
<!-- ko template: getTemplate()--><!-- /ko -->
9797
<!--/ko-->
9898
</div>
9999

100-
<div class="payment-method-second-col billing-address-form">
101-
<form method="post"
102-
data-role="$parent.save"
103-
data-bind="$parent.submit:$parent.save,
100+
<div class="payment-method-second-col billing-address-form">
101+
<form method="post"
102+
data-role="$parent.save"
103+
data-bind="$parent.submit:$parent.save,
104104
mageInit: { 'validation': [] },
105105
attr: {'data-hasrequired': $t('* Required Fields')}">
106-
<fieldset class="fieldset payment styled">
106+
<fieldset class="fieldset payment styled">
107107

108-
<div class="fieldset card_front width-100">
108+
<div class="fieldset card_front width-100">
109109

110-
<div class="field required width-100" >
111-
<label class="label" for="buckaroo_magento2_giftcards_cardnumber"> <span data-bind="i18n: 'Card number:'"> </span> </label>
112-
<div class="control">
113-
<input type="text"
114-
class="input-text field buckaroo_magento2_giftcards_input"
115-
name="payment[buckaroo_magento2_giftcards][cardnumber]"
116-
data-bind="
110+
<div class="field required width-100" >
111+
<label class="label" for="buckaroo_magento2_giftcards_cardnumber"> <span data-bind="i18n: 'Card number:'"> </span> </label>
112+
<div class="control">
113+
<input type="text"
114+
class="input-text field buckaroo_magento2_giftcards_input"
115+
name="payment[buckaroo_magento2_giftcards][cardnumber]"
116+
data-bind="
117117
valueUpdate: 'blur',
118118
value: $parent.CardNumber,
119119
textInput: $parent.CardNumber(),
120120
attr: { 'data-card': code, 'id': 'buckaroo_magento2_giftcards_cardnumber_' + code, 'data-validate': JSON.stringify({ 'required': true, '$parent.validateCardNumber': true }) },
121121
event: { blur: $parent.checkValidness }">
122+
</div>
122123
</div>
123-
</div>
124124

125-
<div class="fieldset width-100">
125+
<div class="fieldset width-100">
126126

127-
<div class="magnet_stripe width-100"></div>
127+
<div class="magnet_stripe width-100"></div>
128128

129-
<div class="field required card_security width-100" >
130-
<label class="label width-65-l" for="buckaroo_magento2_giftcards_pin"> <span data-bind="i18n: 'PIN / Security code:'"> </span> </label>
131-
<div class="control card-info-input width-25-l">
132-
<input type="text"
133-
class="input-text field buckaroo_magento2_giftcards_input"
134-
name="payment[buckaroo_magento2_giftcards][pin]"
135-
data-bind="
129+
<div class="field required card_security width-100" >
130+
<label class="label width-65-l" for="buckaroo_magento2_giftcards_pin"> <span data-bind="i18n: 'PIN / Security code:'"> </span> </label>
131+
<div class="control card-info-input width-25-l">
132+
<input type="text"
133+
class="input-text field buckaroo_magento2_giftcards_input"
134+
name="payment[buckaroo_magento2_giftcards][pin]"
135+
data-bind="
136136
valueUpdate: 'blur',
137137
value: $parent.Pin,
138138
textInput: $parent.Pin(),
139139
attr: { 'id': 'buckaroo_magento2_giftcards_pin_' + code, 'data-validate': JSON.stringify({ 'required': true, '$parent.validatePin': true }) },
140140
event: { blur: $parent.checkValidness }">
141-
</div>
142-
<div class="card_info width-10">
143-
<div class="popup">
141+
</div>
142+
<div class="card_info width-10">
143+
<div class="popup">
144+
</div>
145+
</div>
144146
</div>
145147
</div>
146-
</div>
147-
</div>
148148

149-
<div class="field width-100">
150-
<span data-bind="i18n: 'Please make sure all fields are filled in correctly before proceeding.' "></span>
151-
<span class="apply-gift-card action primary" data-bind="
149+
<div class="field width-100">
150+
<span data-bind="i18n: 'Please make sure all fields are filled in correctly before proceeding.' "></span>
151+
<span class="apply-gift-card action primary" data-bind="
152152
click: $parent.applyGiftcard.bind($parent),
153153
i18n: 'Apply Gift Card',
154154
attr: { 'id': 'buckaroo_magento2_giftcards_submit_' + code }
155155
css: {disabled: $parent.buttoncheck()}">
156156
</span>
157-
</div>
157+
</div>
158158

159-
</div>
160-
</fieldset>
161-
</form>
162-
</div>
159+
</div>
160+
</fieldset>
161+
</form>
162+
</div>
163163

164164
<div class="checkout-agreements-block">
165165
<!-- ko foreach: $parents[1].getRegion('before-place-order') -->
166-
<!-- ko template: getTemplate() --><!-- /ko -->
166+
<!-- ko template: getTemplate() --><!-- /ko -->
167167
<!--/ko-->
168168
</div>
169169

@@ -191,8 +191,8 @@
191191
<!--/ko-->
192192
</div>
193193
</div>
194-
</div>
194+
</div>
195195

196+
<div data-bind='afterRender: checkForPayments'> </div>
196197
<!-- /ko -->
197198

198-
<div data-bind='afterRender: checkForPayments'> </div>

0 commit comments

Comments
 (0)