15 <?php
foreach (
$block->getChildNames() as $childName): ?>
16 <?=
$block->getLayout()->renderElement($childName,
false) ?>
18 <div
class=
"box-tocart">
19 <fieldset
class=
"fieldset">
20 <?php
if (
$item->canHaveQty() &&
$product->isVisibleInSiteVisibility()): ?>
21 <div
class=
"field qty">
22 <label
class=
"label" for=
"qty[<?= $block->escapeHtmlAttr($item->getId()) ?>]"><span><?=
$block->escapeHtml(
__(
'Qty')) ?></span></label>
24 <input type=
"number" data-role=
"qty" id=
"qty[<?= $block->escapeHtmlAttr($item->getId()) ?>]" class=
"input-text qty" data-validate=
"{'required-number':true,'validate-greater-than-zero':true}" 25 name=
"qty[<?= $block->escapeHtmlAttr($item->getId()) ?>]" value=
"<?= /* @noEscape */ (int)($block->getAddToCartQty($item) * 1) ?>">
30 <div
class=
"product-item-actions">
31 <div
class=
"actions-primary">
32 <button type=
"button" data-role=
"tocart" data-post=
'<?= /* @noEscape */ $block->getItemAddToCartParams($item) ?>' title=
"<?= $block->escapeHtmlAttr(__('Add to Cart')) ?>" data-item-
id=
"<?= $block->escapeHtmlAttr($item->getId()) ?>" class=
"action tocart primary">
33 <span><?=
$block->escapeHtml(
__(
'Add to Cart')) ?></span>
38 <?php
if (
$product->getIsSalable()): ?>
39 <p
class=
"available stock" title=
"<?= $block->escapeHtmlAttr(__('Availability')) ?>">
40 <span><?=
$block->escapeHtml(
__(
'In stock')) ?></span>
43 <p
class=
"unavailable stock" title=
"<?= $block->escapeHtmlAttr(__('Availability')) ?>">
44 <span><?=
$block->escapeHtml(
__(
'Out of stock')) ?></span>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
if( $item->canHaveQty() &&$product->isVisibleInSiteVisibility())( $item->getId()) ?>]"><span><? endif