10 <div
class=
"block discount" id=
"block-discount" data-
mage-init=
'{"collapsible":{"openedState": "active", "saveState": false}}'>
11 <div
class=
"title" data-role=
"title">
12 <strong
id=
"block-discount-heading" role=
"heading" aria-level=
"2"><?=
__(
'Apply Discount Code') ?></strong>
14 <div
class=
"content" data-role=
"content" aria-labelledby=
"block-discount-heading">
15 <
form id=
"discount-coupon-form" 16 action=
"<?= /* @escapeNotVerified */ $block->getUrl('checkout/cart/couponPost') ?>" 18 data-
mage-init=
'{"discountCode":{"couponCodeSelector": "#coupon_code", 19 "removeCouponSelector": "#remove-coupon", 20 "applyButton": "button.action.apply", 21 "cancelButton": "button.action.cancel"}}'>
22 <div
class=
"fieldset coupon<?= strlen($block->getCouponCode()) ? ' applied' : '' ?>">
23 <input type=
"hidden" name=
"remove" id=
"remove-coupon" value=
"0" />
25 <label
for=
"coupon_code" class=
"label"><span><?=
__(
'Enter discount code') ?></span></label>
27 <input type=
"text" class=
"input-text" id=
"coupon_code" name=
"coupon_code" value=
"<?= $block->escapeHtml($block->getCouponCode()) ?>" placeholder=
"<?= $block->escapeHtml(__('Enter discount code')) ?>" <?php
if (strlen(
$block->getCouponCode())): ?> disabled=
"disabled" <?php
endif; ?> />
30 <div
class=
"actions-toolbar">
31 <?php
if (!strlen(
$block->getCouponCode())): ?>
33 <button
class=
"action apply primary" type=
"button" value=
"<?= /* @escapeNotVerified */ __('Apply Discount') ?>">
34 <span><?=
__(
'Apply Discount') ?></span>
39 <button type=
"button" class=
"action cancel primary" value=
"<?= /* @escapeNotVerified */ __('Cancel Coupon') ?>"><span><?=
__(
'Cancel Coupon') ?></span></button>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
if( $form)() ?>< script > require(['jquery' mage mage
jquery extjs ext tree mage adminhtml form