![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/app/design/frontend/Cnc/default/Magento_Checkout/templates/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ ?> <?php /** @var $block \Magento\Checkout\Block\Onepage\Success */ /** @var \Cnc\Checkout\ViewModel\Success $viewModel */ $viewModel = $block->getViewModel(); ?> <?php if ($block->getCanViewOrder() && $block->getCanPrintOrder()): ?> <a href="<?= $block->escapeUrl($block->getPrintUrl()) ?>" class="action print" target="_blank" rel="noopener"> <?= $block->escapeHtml(__($viewModel->canShowProforma() ? 'Print proforma' : 'Print receipt')); ?> </a> <?= $block->getChildHtml() ?> <?php endif;?>