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