Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
composite.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
12 ?>
13 <?php if ($block->isMsgVisible()): ?>
14  <div class="availability only">
15  <a href="#"
16  data-mage-init='{"toggleAdvanced": {"selectorsToggleClass": "active", "baseToggleClass": "expanded", "toggleContainers": "#<?= /* @escapeNotVerified */ $block->getDetailsPlaceholderId() ?>"}}'
17  id="<?= /* @escapeNotVerified */ $block->getPlaceholderId() ?>"
18  title="<?= /* @escapeNotVerified */ __('Only %1 left', ($block->getStockQtyLeft())) ?>"
19  class="action show">
20  <?= /* @escapeNotVerified */ __('Only %1 left', "<strong>{$block->getStockQtyLeft()}</strong>") ?>
21  </a>
22  </div>
23  <div class="availability only detailed" id="<?= /* @escapeNotVerified */ $block->getDetailsPlaceholderId() ?>">
24  <div class="table-wrapper">
25  <table class="data table">
26  <caption class="table-caption"><?= /* @escapeNotVerified */ __('Product availability') ?></caption>
27  <thead>
28  <tr>
29  <th class="col item" scope="col"><?= /* @escapeNotVerified */ __('Product Name') ?></th>
30  <th class="col qty" scope="col"><?= /* @escapeNotVerified */ __('Qty') ?></th>
31  </tr>
32  </thead>
33  <tbody>
34  <?php foreach ($block->getChildProducts() as $childProduct) : ?>
35  <?php $childProductStockQty = $block->getProductStockQty($childProduct); ?>
36  <?php if ($childProductStockQty > 0) : ?>
37  <tr>
38  <td data-th="<?= $block->escapeHtml(__('Product Name')) ?>" class="col item"><?= /* @escapeNotVerified */ $childProduct->getName() ?></td>
39  <td data-th="<?= $block->escapeHtml(__('Qty')) ?>" class="col qty"><?= /* @escapeNotVerified */ $childProductStockQty ?></td>
40  </tr>
41  <?php endif ?>
42  <?php endforeach ?>
43  </tbody>
44  </table>
45  </div>
46  </div>
47 <?php endif ?>
foreach( $this->main as $item) endforeach
Definition: side-menu.phtml:10
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
__()
Definition: __.php:13
$block
Definition: block.php:8
endif
Definition: 404.phtml:116