Server IP : 172.16.15.8 / Your IP : 18.118.137.96 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/madelianides/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE_AFL.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magento.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magento.com for more information. * * @category design * @package base_default * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ ?> <?php $order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId(); ?> <?php $order_details = Mage::getModel('sales/order')->loadByIncrementId($order_id); ?> <?php $order = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId()); ?> <?php $shipping_address_data = $order_details->getShippingAddress(); ?> <div class="page-title"> <h1><?php echo $this->__('Order Confirmation') ?></h1> </div> <div class="content"> <?php echo $this->getMessagesBlock()->toHtml() ?> <?php if ($this->getOrderId()):?> <?php if($order->getCustomerId() === NULL); ?> <p>Hi <?php echo $order->getBillingAddress()->getFirstname(); ?>, <p><?php echo $this->__('Thanks for your order - we hope you had a good time shopping with us.') ?></p> <?php if ($this->getCanViewOrder()) :?> <h2><?php echo $this->__('YOUR ORDER NUMBER IS:</h2> %s', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></h2> <?php else :?> <h2><?php echo $this->__('YOUR ORDER NUMBER IS:</h2> %s', $this->escapeHtml($this->getOrderId())) ?></h2> <?php endif;?> <p> <h2><?php echo $this->__('AND WE WILL DELIVER TO:') ?></h2> <p><?php echo $shipping_address_data['firstname']; ?> <?php echo $shipping_address_data['lastname']; ?>, <?php echo $shipping_address_data['street']; ?></br> <?php echo $shipping_address_data['city']; ?>, <!--<?php echo $shipping_address_data['region']; ?>,--> <?php echo $shipping_address_data['postcode']; ?>, <?php echo $shipping_address_data['country_id']; ?></p> </p> </div> <div class="order-confirm"> <div class="products"> <table> <?php foreach($order_details->getAllVisibleItems() as $item): $configItem = Mage::getModel('catalog/product')->loadByAttribute('sku', $item->getSku()); ?> <tr> <td><img src="<?php echo $this->helper('catalog/image')->init($configItem, 'small_image')->resize(100); ?>" width="100" height="100" class="media-object img-responsive" alt="<?php echo $this->getImageLabel($configItem, 'small_image'); ?>"/></td> <td class="text"><?php echo $item->getName() ?></td> <td class="text"><?php echo round($item->getQtyOrdered(), 0) ?></td> <td class="text"><?php echo Mage::helper("core")->currency($item->getPrice()) ?></td> </tr> <?php endforeach ?> </table> </div> <div class="amounts"> <?php echo '<p class="subtotal">Subtotal:<span class="amount">' . Mage::helper("core")->currency($order_details->subtotal) . "</span></p>"; ?> <?php echo '<p class="tax">VAT:<span class="amount">' . Mage::helper("core")->currency($order_details->tax_amount) . "</span></p>"; ?> <?php echo '<p class="discount">Discount:<span class="amount">' . Mage::helper("core")->currency($order_details->discount_amount) . "</span></p>"; ?> <?php echo '<p class="discount">Delivery:<span class="amount">' . Mage::helper("core")->currency($shipping_amount = $order_details->shipping_amount) . "</span></p>"; ?> <p class="paid"><?php echo $this->__(' Total Paid: <span class="amount">%s', $this->helper('core')->formatPrice($total, false)); ?></p> </div> </div> <p class="details"><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p> <?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) :?> <p> <?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?> <?php echo $this->getChildHtml() ?> </p> <?php endif;?> <?php endif;?> <div class="buttons-set"> <button type="button" class="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Continue Shopping')) ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button> </div>