Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
bundle.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 <script>
12 
13 if(typeof Bundle=='undefined') {
14  Bundle = {};
15 }
16 
17 </script>
18 
19 <div id="bundle_product_container" class="entry-edit form-inline">
20  <fieldset class="fieldset">
21  <div class="field field-ship-bundle-items">
22  <label for="shipment_type" class="label"><?= /* @escapeNotVerified */ __('Ship Bundle Items') ?></label>
23  <div class="control">
24  <select <?php if ($block->isReadonly()): ?>disabled="disabled" <?php endif;?>
25  id="shipment_type"
26  name="<?= /* @escapeNotVerified */ $block->getFieldSuffix() ?>[shipment_type]"
27  class="select">
28  <option value="1"><?= /* @escapeNotVerified */ __('Separately') ?></option>
29  <option value="0"<?php if ($block->getProduct()->getShipmentType() == 0): ?> selected="selected"<?php endif; ?>><?= /* @escapeNotVerified */ __('Together') ?></option>
30  </select>
31  </div>
32  </div>
33 
34  <div
35  id="product_bundle_container"
36  class="entry-edit custom-options bundle sortable-wrapper">
37  <?= $block->getOptionsBoxHtml() ?>
38  </div>
39 
40  <?= $block->getAddButtonHtml() ?>
41  </fieldset>
42 </div>
43 
44 <input type="hidden" name="affect_bundle_product_selections" value="1" />
45 
46 <script>
47 require(["prototype", "mage/adminhtml/form"], function(){
48  // re-bind form elements onchange
49  varienWindowOnload(true);
50 
51  <?php if ($block->isReadonly()):?>
52  $('product_bundle_container').select('input', 'select', 'textarea', 'button').each(function(input){
53  input.disabled = true;
54  if (input.tagName.toLowerCase() == 'button') {
55  input.addClassName('disabled');
56  }
57  });
58  <?php endif; ?>
59 });
60 </script>
endif
Definition: bundle.phtml:74
$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