Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
updatecart.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 <?php $_product = $block->getProduct(); ?>
12 <?php $buttonTitle = __('Update Cart'); ?>
13 <?php if ($_product->isSaleable()): ?>
14  <div class="box-tocart update">
15  <fieldset class="fieldset">
16  <?php if ($block->shouldRenderQuantity()): ?>
17  <div class="field qty">
18  <label class="label" for="qty"><span><?= /* @escapeNotVerified */ __('Qty') ?></span></label>
19  <div class="control">
20  <input type="number"
21  name="qty"
22  id="qty"
23  value=""
24  title="<?= /* @escapeNotVerified */ __('Qty') ?>"
25  class="input-text qty"
26  data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
27  </div>
28  </div>
29  <?php endif; ?>
30  <div class="actions">
31  <button type="submit"
32  title="<?= /* @escapeNotVerified */ $buttonTitle ?>"
33  class="action primary tocart"
34  id="product-updatecart-button">
35  <span><?= /* @escapeNotVerified */ $buttonTitle ?></span>
36  </button>
37  <?= $block->getChildHtml('', true) ?>
38  </div>
39  </fieldset>
40  </div>
41  <script type="text/x-magento-init">
42  {
43  "#product_addtocart_form": {
44  "validation": {},
45  "addToCart": {
46  "cartButtonId": "#product-updatecart-button",
47  "cartForm": "#product_addtocart_form"
48  }
49  }
50  }
51  </script>
52 <?php endif; ?>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
__()
Definition: __.php:13
$block
Definition: block.php:8
$_product
$buttonTitle
endif