29
29
30
30
<dd id="allow-gift-options-for-order-container" class="order-options">
31
31
<div class="options-order-container" id="options-order-container-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> "></div>
32
- <a href="#" class="action activate message" data-mage-init='{"toggleAdvanced": {"selectorsToggleClass":"hidden", "toggleContainers":"#allow-gift-messages-for-order-container"}}'><?php /* @escapeNotVerified */ echo __ ('Gift Message ' ) ?> </a>
32
+ <button class="action action-gift"
33
+ data-mage-init='{"toggleAdvanced": {"selectorsToggleClass":"hidden", "toggleContainers":"#allow-gift-messages-for-order-container"}}'>
34
+ <span><?php /* @escapeNotVerified */ echo __ ('Gift Message ' ) ?> </span>
35
+ </button>
33
36
<div id="allow-gift-messages-for-order-container" class="gift-messages-order hidden">
34
37
<fieldset class="fieldset">
35
38
<p><?php /* @escapeNotVerified */ echo __ ('Leave this box blank if you don \'t want to leave a gift message for the entire order. ' ) ?> </p>
53
56
</div>
54
57
</fieldset>
55
58
<script>
56
- require(['jquery'], function(jQuery){
57
-
58
- jQuery('#add-gift-options-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> ')
59
- .add('#add-gift-options-for-order-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> ').removeClass('hidden');
60
-
61
- });
62
- </script>
59
+ require(['jquery'], function(jQuery){
60
+ jQuery('#add-gift-options-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> ')
61
+ .add('#add-gift-options-for-order-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> ')
62
+ .removeClass('hidden');
63
+ });
64
+ </script>
63
65
</div>
64
66
</dd>
65
67
<?php endif ?>
@@ -88,7 +90,10 @@ require(['jquery'], function(jQuery){
88
90
<div class="options">
89
91
<div class="options-items-container" id="options-items-container-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> -<?php /* @escapeNotVerified */ echo $ _item ->getId () ?> "></div>
90
92
<?php if ($ block ->isItemMessagesAvailable ($ _item )): ?>
91
- <a href="#" class="action activate message" data-mage-init='{"toggleAdvanced": {"selectorsToggleClass":"hidden", "toggleContainers":"#gift-messages-for-item-container-<?php /* @escapeNotVerified */ echo $ _item ->getId () ?> "}}'><?php /* @escapeNotVerified */ echo __ ('Gift Message ' ) ?> </a>
93
+ <button class="action action-gift"
94
+ data-mage-init='{"toggleAdvanced": {"selectorsToggleClass":"hidden", "toggleContainers":"#gift-messages-for-item-container-<?php /* @escapeNotVerified */ echo $ _item ->getId () ?> "}}'>
95
+ <span><?php /* @escapeNotVerified */ echo __ ('Gift Message ' ) ?> </span>
96
+ </button>
92
97
<div id="gift-messages-for-item-container-<?php /* @escapeNotVerified */ echo $ _item ->getId () ?> " class="block message hidden">
93
98
<fieldset class="fieldset">
94
99
<p><?php /* @escapeNotVerified */ echo __ ('Leave a box blank if you don \'t want to add a gift message for that item. ' ) ?> </p>
@@ -119,24 +124,23 @@ require(['jquery'], function(jQuery){
119
124
</ol>
120
125
</dd>
121
126
<script>
122
- require(['jquery'], function(jQuery){
123
-
124
- jQuery('#add-gift-options-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> ')
125
- .add('#add-gift-options-for-items-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> ').removeClass('hidden');
126
-
127
- });
128
- </script>
127
+ require(['jquery'], function(jQuery){
128
+ jQuery('#add-gift-options-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> ')
129
+ .add('#add-gift-options-for-items-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> ')
130
+ .removeClass('hidden');
131
+ });
132
+ </script>
129
133
<?php endif ; ?>
130
134
<dt class="extra-options-container" id="extra-options-container-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> "></dt>
131
135
</dl>
132
136
</fieldset>
133
- <script type="text/x-magento-init">
134
- {
135
- "#allow_gift_options, #allow_gift_options_for_order, #allow_gift_options_for_items": {
136
- "giftOptions": {}
137
+ <script type="text/x-magento-init">
138
+ {
139
+ "#allow_gift_options, #allow_gift_options_for_order, #allow_gift_options_for_items": {
140
+ "giftOptions": {}
141
+ }
137
142
}
138
- }
139
- </script>
143
+ </script>
140
144
<?php break ; ?>
141
145
142
146
<?php case 'multishipping_address ' : ?>
@@ -160,7 +164,10 @@ require(['jquery'], function(jQuery){
160
164
<div class="options-order-container" id="options-order-container-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> "></div>
161
165
<?php if ($ block ->isMessagesAvailable ()): ?>
162
166
<?php $ _giftMessage = true ; ?>
163
- <a href="#" class="action activate message" data-mage-init='{"toggleAdvanced": {"selectorsToggleClass":"hidden", "toggleContainers":"#gift-messages-for-order-container-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> "}}'><?php /* @escapeNotVerified */ echo __ ('Gift Message ' ) ?> </a>
167
+ <button class="action action-gift"
168
+ data-mage-init='{"toggleAdvanced": {"selectorsToggleClass":"hidden", "toggleContainers":"#gift-messages-for-order-container-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> "}}'>
169
+ <span><?php /* @escapeNotVerified */ echo __ ('Gift Message ' ) ?> </span>
170
+ </button>
164
171
<div id="gift-messages-for-order-container-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> " class="gift-messages-order hidden">
165
172
<fieldset class="fieldset">
166
173
<p><?php /* @escapeNotVerified */ echo __ ('You can leave this box blank if you don \'t want to add a gift message for this address. ' ) ?> </p>
@@ -213,7 +220,10 @@ require(['jquery'], function(jQuery){
213
220
214
221
<?php if ($ block ->isItemMessagesAvailable ($ _item )): ?>
215
222
<?php $ _giftMessage = true ; ?>
216
- <a href="#" class="action activate message" data-mage-init='{"toggleAdvanced": {"selectorsToggleClass":"hidden", "toggleContainers":"#gift-messages-for-item-container-<?php /* @escapeNotVerified */ echo $ _item ->getId () ?> "}}'><?php /* @escapeNotVerified */ echo __ ('Gift Message ' ) ?> </a>
223
+ <button class="action action-gift"
224
+ data-mage-init='{"toggleAdvanced": {"selectorsToggleClass":"hidden", "toggleContainers":"#gift-messages-for-item-container-<?php /* @escapeNotVerified */ echo $ _item ->getId () ?> "}}'>
225
+ <span><?php /* @escapeNotVerified */ echo __ ('Gift Message ' ) ?> </span>
226
+ </button>
217
227
<div id="gift-messages-for-item-container-<?php /* @escapeNotVerified */ echo $ _item ->getId () ?> " class="block message hidden">
218
228
<fieldset class="fieldset">
219
229
<p><?php /* @escapeNotVerified */ echo __ ('You can leave this box blank if you don \'t want to add a gift message for the item. ' ) ?> </p>
@@ -248,13 +258,13 @@ require(['jquery'], function(jQuery){
248
258
<dt class="extra-options-container" id="extra-options-container-<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> "></dt>
249
259
</dl>
250
260
</fieldset>
251
- <script type="text/x-magento-init">
252
- {
253
- "#allow_gift_options_<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> , #allow_gift_options_for_order_<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> , #allow_gift_options_for_items_<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> ": {
254
- "giftOptions": {}
261
+ <script type="text/x-magento-init">
262
+ {
263
+ "#allow_gift_options_<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> , #allow_gift_options_for_order_<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> , #allow_gift_options_for_items_<?php /* @escapeNotVerified */ echo $ block ->getEntity ()->getId () ?> ": {
264
+ "giftOptions": {}
265
+ }
255
266
}
256
- }
257
- </script>
267
+ </script>
258
268
<?php break ; ?>
259
269
<?php endswitch ?>
260
270
<?php if ($ _giftMessage ): ?>
0 commit comments