![]() 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/Ecombricks/InventoryMultishipping/view/frontend/templates/checkout/ |
<?php /** * Copyright © eComBricks. All rights reserved. * See LICENSE.txt for license details. */ ?> <?php $productMetadataHelper = $this->helper(\Ecombricks\Framework\Helper\ProductMetadata::class); ?> <?php $errors = $block->getCheckoutData()->getAddressErrors(); ?> <?php foreach ($errors as $addressId => $error) : ?> <div class="message message-error error"> <?= $block->escapeHtml($error); ?> <?= $block->escapeHtml(__('Please see')); ?> <a href="#<?= $block->escapeHtml($block->getCheckoutData()->getAddressAnchorName($addressId)); ?>"><?= $block->escapeHtml(__('details below')); ?></a>. </div> <?php endforeach;?> <form action="<?= $block->escapeUrl($block->getPostActionUrl()); ?>" method="post" id="review-order-form" data-mage-init='{"orderOverview": {}, "validation":{}}' class="form multicheckout order-review"> <?= $block->getBlockHtml('formkey'); ?> <div class="block block-billing"> <div class="block-title"><strong><?= $block->escapeHtml(__('Billing Information')); ?></strong></div> <div class="block-content"> <div class="box box-billing-address"> <?php $address = $block->getBillingAddress() ?> <strong class="box-title"> <span><?= $block->escapeHtml(__('Billing Address')); ?></span> <a href="<?= $block->escapeUrl($block->getEditBillingAddressUrl($address)); ?>" class="action edit"><span><?= $block->escapeHtml(__('Change')); ?></span></a> </strong> <div class="box-content"> <address><?= $address->format('html') ?></address> </div> </div> <div class="box box-billing-method"> <strong class="box-title"> <span><?= $block->escapeHtml(__('Payment Method')); ?></span> <a href="<?= $block->escapeUrl($block->getEditBillingUrl()); ?>" class="action edit"><span><?= $block->escapeHtml(__('Change')); ?></span></a> </strong> <div class="box-content"> <input type="hidden" name="payment[cc_number]" value="<?= $block->escapeHtml($block->getPayment()->getCcNumber()) ?>" /> <input type="hidden" name="payment[cc_cid]" value="<?= $block->escapeHtml($block->getPayment()->getCcCid()) ?>" /> <?= $block->getPaymentHtml() ?> </div> </div> </div> </div> <div class="block block-shipping"> <div class="block-title"><strong><?= $block->escapeHtml(__('Shipping Information')); ?></strong></div> <?php $mergedCells = ($this->helper(\Magento\Tax\Helper\Data::class)->displayCartBothPrices() ? 2 : 1); ?> <?php foreach ($block->getShippingAddresses() as $index => $address) : ?> <div class="block-content"> <a name="<?= $block->escapeHtml($block->getCheckoutData() ->getAddressAnchorName($address->getId())); ?>"></a> <div class="title"> <strong><?= $block->escapeHtml(__('Address')); ?> <?= $block->escapeHtml($index + 1); ?> <span> <?= $block->escapeHtml(__('of')); ?> <?= $block->escapeHtml($block->getShippingAddressCount())?> </span> </strong> </div> <?php if ($error = $block->getCheckoutData()->getAddressError($address)) : ?> <div class="error-description"><?= $block->escapeHtml($error); ?></div> <?php endif;?> <div class="box box-shipping-address"> <strong class="box-title"> <span><?= $block->escapeHtml(__('Shipping To')); ?></span> <a href="<?= $block->escapeUrl($block->getEditShippingAddressUrl($address)); ?>" class="action edit"><span><?= $block->escapeHtml(__('Change')); ?></span></a> </strong> <div class="box-content"> <address> <?= $address->format('html') ?> </address> </div> </div> <div class="box box-shipping-method"> <strong class="box-title"> <span><?= $block->escapeHtml(__('Shipping Method')); ?></span> <a href="<?= $block->escapeUrl($block->getEditShippingUrl()); ?>" class="action edit"><span><?= $block->escapeHtml(__('Change')); ?></span></a> </strong> <!-- Inventory Begin --> <?php $taxHelper = $this->helper(\Magento\Tax\Helper\Data::class); ?> <?php $currentShippingRates = $address->getCurrentShippingRate(); ?> <?php if ($currentShippingRates) : ?> <div class="box-content"> <?php foreach ($address->getSourceCodes() as $sourceCode) : ?> <?php $currentShippingRate = !empty($currentShippingRates[$sourceCode]) ? $currentShippingRates[$sourceCode] : null; ?> <?php if (!$currentShippingRate) { continue; } ?> <dl class="source"> <dt class="source-info"> <span class="source-name"><?= $block->escapeHtml($block->getSourceName($sourceCode)) ?></span> </dt> <dd class="source-shipping-method"> <?= $block->escapeHtml($currentShippingRate->getCarrierTitle()) ?> (<?= $block->escapeHtml($currentShippingRate->getMethodTitle()) ?>) <?php $priceExclTax = $block->getShippingPriceExclTax($address); ?> <?php $priceInclTax = $block->getShippingPriceInclTax($address); ?> <?php $displayBothPrices = $taxHelper->displayShippingBothPrices() && $priceExclTax !== $priceInclTax; ?> <?php if ($displayBothPrices) : ?> <span class="price-including-tax" data-label="<?= $block->escapeHtml(__('Incl. Tax')); ?>"><?= $priceInclTax ?></span> <span class="price-excluding-tax" data-label="<?= $block->escapeHtml(__('Excl. Tax')); ?>"><?= $priceExclTax ?></span> <?php else : ?><?= $priceInclTax ?><?php endif; ?> </dd> </dl> <?php endforeach; ?> </div> <?php endif; ?> <!-- Inventory End --> </div> <div class="box box-items"> <div class="box-content"> <div class="order-review-wrapper table-wrapper"> <table class="items data table table-order-review" id="overview-table-<?= $block->escapeHtml($address->getId()); ?>"> <caption class="table-caption"><?= $block->escapeHtml(__('Order Review')); ?></caption> <thead> <tr> <th class="col item" scope="col"><?= $block->escapeHtml(__('Item')); ?> <a href="<?= $block->escapeUrl($block->getAddressesEditUrl()); ?>" class="action edit"> <span><?= $block->escapeHtml(__('Edit')); ?></span> </a> </th> <th class="col price" scope="col"><?= $block->escapeHtml(__('Price')); ?></th> <th class="col qty" scope="col"><?= $block->escapeHtml(__('Qty')); ?></th> <th class="col subtotal" scope="col"><?= $block->escapeHtml(__('Subtotal')); ?></th> </tr> </thead> <tbody> <?php foreach ($block->getShippingAddressItems($address) as $item) : ?> <?= $block->getRowItemHtml($item) ?> <?php endforeach; ?> </tbody> <tfoot> <?= $block->renderTotals($block->getShippingAddressTotals($address)); ?> </tfoot> </table> </div> </div> </div> </div> <?php endforeach; ?> </div> <?php if ($block->getQuote()->hasVirtualItems()) : ?> <div class="block block-other"> <?php $billingAddress = $block->getQuote()->getBillingAddress(); ?> <a name="<?= $block->escapeHtml($block->getCheckoutData()->getAddressAnchorName($billingAddress->getId())); ?>"></a> <div class="block-title"><strong><?= $block->escapeHtml(__('Other items in your order')); ?></strong></div> <?php if ($error = $block->getCheckoutData()->getAddressError($billingAddress)) :?> <div class="error-description"><?= $block->escapeHtml($error); ?></div> <?php endif;?> <div class="block-content"> <strong class="subtitle"> <span><?= $block->escapeHtml(__('Items')); ?></span> <a href="<?= $block->escapeUrl($block->getVirtualProductEditUrl()); ?>" class="action edit"><span><?= $block->escapeHtml(__('Edit Items')); ?></span></a> </strong> <?php $mergedCells = ($this->helper(\Magento\Tax\Helper\Data::class)->displayCartBothPrices() ? 2 : 1); ?> <div class="order-review-wrapper table-wrapper"> <table class="items data table table-order-review" id="virtual-overview-table"> <caption class="table-caption"><?= $block->escapeHtml(__('Items')); ?></caption> <thead> <tr> <th class="col item" scope="col"><?= $block->escapeHtml(__('Product Name')); ?></th> <th class="col price" scope="col"><?= $block->escapeHtml(__('Price')); ?></th> <th class="col qty" scope="col"><?= $block->escapeHtml(__('Qty')); ?></th> <th class="col subtotal" scope="col"><?= $block->escapeHtml(__('Subtotal')); ?></th> </tr> </thead> <tbody> <?php foreach ($block->getVirtualItems() as $_item) : ?> <?= $block->getRowItemHtml($_item) ?> <?php endforeach; ?> </tbody> <tfoot> <?= $block->renderTotals($block->getBillingAddressTotals()); ?> </tfoot> </table> </div> </div> </div> <?php endif; ?> <?= $block->getChildHtml('items_after') ?> <div id="checkout-review-submit" class="checkout-review"> <?= $block->getChildHtml('agreements') ?> <div class="grand totals"> <strong class="mark"><?= $block->escapeHtml(__('Grand Total:')); ?></strong> <strong class="amount"> <?= $this->helper(\Magento\Checkout\Helper\Data::class)->formatPrice($block->getTotal()); ?> </strong> </div> <div class="actions-toolbar" id="review-buttons-container"> <?php if (version_compare($productMetadataHelper->getVersion(), '2.4.1', '>=') || ( version_compare($productMetadataHelper->getVersion(), '2.3.6', '>=') && version_compare($productMetadataHelper->getVersion(), '2.4.0', '<') )) : ?> <?= $block->getChildHtml('captcha') ?> <?php endif; ?> <div class="primary"> <button type="submit" class="action primary submit" id="review-button"><span><?= $block->escapeHtml(__('Place Order')); ?></span> </button> </div> <div class="secondary"> <a href="<?= $block->escapeUrl($block->getBackUrl()); ?>" class="action back"> <span><?= $block->escapeHtml(__('Back to Billing Information')); ?></span> </a> </div> <?php if (version_compare($productMetadataHelper->getVersion(), '2.4.0', '>=')) : ?> <span id="review-please-wait" class="please-wait load indicator" data-text="<?= $block->escapeHtml(__('Submitting order information...')); ?>"> <span><?= $block->escapeHtml(__('Submitting order information...')); ?></span> </span> <?= $secureRenderer->renderStyleAsTag('display: none;', 'span#review-please-wait') ?> <?php else : ?> <span id="review-please-wait" class="please-wait load indicator" style="display: none;" data-text="<?= $block->escapeHtml(__('Submitting order information...')); ?>"> <span><?= $block->escapeHtml(__('Submitting order information...')); ?></span> </span> <?php endif; ?> </div> </div> </form>