37 lines
1.1 KiB
PHTML
37 lines
1.1 KiB
PHTML
<?php
|
|
declare(strict_types=1);
|
|
|
|
/** @var \Magento\Checkout\Block\Cart $block */
|
|
$itemsSummaryQty = (float)$block->getItemsSummaryQty();
|
|
$displayQty = fmod($itemsSummaryQty, 1.0) === 0.0
|
|
? (string)(int)$itemsSummaryQty
|
|
: (string)$itemsSummaryQty;
|
|
?>
|
|
<div class="esun-cart-page">
|
|
<header class="esun-cart-page__header">
|
|
<h1><?= $block->escapeHtml(__('My Shopping Cart')) ?> <span>(<?= $block->escapeHtml($displayQty) ?>)</span></h1>
|
|
<a class="esun-cart-page__continue"
|
|
href="<?= $block->escapeUrl($block->getContinueShoppingUrl()) ?>">
|
|
<?= $block->escapeHtml(__('Continue Shopping')) ?>
|
|
</a>
|
|
</header>
|
|
|
|
<?= /* @noEscape */ $block->getChildHtml('vat_prompt') ?>
|
|
|
|
<?php if ($block->getItemsCount()): ?>
|
|
<?= /* @noEscape */ $block->getChildHtml('with-items') ?>
|
|
<?php else: ?>
|
|
<?= /* @noEscape */ $block->getChildHtml('no-items') ?>
|
|
<?php endif; ?>
|
|
|
|
<?= /* @noEscape */ $block->getChildHtml('recommended_products') ?>
|
|
</div>
|
|
|
|
<script type="text/x-magento-init">
|
|
{
|
|
".esun-cart-page": {
|
|
"Esun_Cart/js/cart-page": {}
|
|
}
|
|
}
|
|
</script>
|