success.phtml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /** @var \Magento\Multishipping\Block\Checkout\Success $block */
  7. ?>
  8. <form action="<?= $block->escapeUrl($block->getContinueUrl()); ?>" method="post">
  9. <div class="multicheckout success">
  10. <p><?= $block->escapeHtml(__('For successfully order items, you\'ll receive a confirmation email including '.
  11. 'order numbers, tracking information and more details.')) ?></p>
  12. <?php if ($orderIds = $block->getOrderIds()) : ?>
  13. <h3><?= $block->escapeHtml(__('Successfully ordered'))?></h3>
  14. <div class="orders-succeed">
  15. <ul class="orders-list">
  16. <?php foreach ($orderIds as $orderId => $incrementId) : ?>
  17. <li class="shipping-list">
  18. <div class="order-id"><a href="<?= $block->escapeUrl($block->getViewOrderUrl($orderId)); ?>">
  19. <?= $block->escapeHtml($incrementId); ?></a>
  20. </div>
  21. <?php $shippingAddress = $block->getCheckoutData()->getOrderShippingAddress($orderId); ?>
  22. <div class="shipping-item">
  23. <?php if ($shippingAddress) : ?>
  24. <span class="shipping-label"><?= $block->escapeHtml(__('Ship to:')); ?></span>
  25. <span class="shipping-address">
  26. <?= $block->escapeHtml(
  27. $block->getCheckoutData()->formatOrderShippingAddress($shippingAddress)
  28. ); ?>
  29. </span>
  30. <?php else : ?>
  31. <span class="shipping-address">
  32. <?= $block->escapeHtml(__('No shipping required.')); ?>
  33. </span>
  34. <?php endif; ?>
  35. </div>
  36. </li>
  37. <?php endforeach; ?>
  38. </ul>
  39. </div>
  40. <?php endif; ?>
  41. <?= $block->getChildHtml() ?>
  42. <div class="actions-toolbar" id="review-buttons-container">
  43. <div class="primary">
  44. <button type="submit"
  45. class="action primary submit"><span><?= $block->escapeHtml(__('Continue Shopping')); ?></span>
  46. </button>
  47. </div>
  48. </div>
  49. </div>
  50. </form>