Advertisement
andhiirawan

Magento : Get Customer Email in Success Checkout Page

Jan 31st, 2016
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.16 KB | None | 0 0
  1. <!-- path : \app\design\frontend\theme\default\template\checkout\success.phtml -->
  2.  
  3. <?php
  4. /**
  5.  * Magento
  6.  *
  7.  * NOTICE OF LICENSE
  8.  *
  9.  * This source file is subject to the Academic Free License (AFL 3.0)
  10.  * that is bundled with this package in the file LICENSE_AFL.txt.
  11.  * It is also available through the world-wide-web at this URL:
  12.  * http://opensource.org/licenses/afl-3.0.php
  13.  * If you did not receive a copy of the license and are unable to
  14.  * obtain it through the world-wide-web, please send an email
  15.  * to license@magento.com so we can send you a copy immediately.
  16.  *
  17.  * DISCLAIMER
  18.  *
  19.  * Do not edit or add to this file if you wish to upgrade Magento to newer
  20.  * versions in the future. If you wish to customize Magento for your
  21.  * needs please refer to http://www.magento.com for more information.
  22.  *
  23.  * @category    design
  24.  * @package     base_default
  25.  * @copyright   Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
  26.  * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
  27.  */
  28. ?>
  29. <div class="page-title-confirm">
  30.     <h1><?php echo $this->__('Confirmation') ?></h1>
  31. </div>
  32. <span class="step"><?php echo $this->__('Step 3 of 3') ?></span>
  33. <?php echo $this->getMessagesBlock()->toHtml() ?>
  34. <h2 class="sub-title-thank"><?php echo $this->__('Thank You for Your Order') ?></h2>
  35.  
  36. <div><?php echo $this->__('We have sent your order confirmation to') ?></div>
  37.  
  38. <?php
  39.     $order_data = Mage::getModel('sales/order')->loadByIncrementId($order_increment_id);
  40.     echo $order_data->getShippingAddress()->getEmail();
  41. ?>
  42.  
  43. <?php if ($this->getOrderId()):?>
  44. <?php if ($this->getCanViewOrder()) :?>
  45.     <p><?php echo $this->__('Your order ID is') ?></p>
  46.     <div><?php echo $this->__('%s', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></p>
  47. <?php  else :?>
  48.     <p><?php echo $this->__('Your order ID is %s', $this->escapeHtml($this->getOrderId())) ?></p>
  49. <?php endif;?>
  50.     <p><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p>
  51. <?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) :?>
  52.     <p>
  53.         <?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?>
  54.         <?php echo $this->getChildHtml() ?>
  55.     </p>
  56. <?php endif;?>
  57. <?php endif;?>
  58.  
  59. <?php if ($this->getAgreementRefId()): ?>
  60.     <p><?php echo $this->__('Your billing agreement # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getAgreementUrl()), $this->escapeHtml($this->getAgreementRefId())))?></p>
  61. <?php endif;?>
  62.  
  63. <?php if ($profiles = $this->getRecurringProfiles()):?>
  64. <p><?php echo $this->__('Your recurring payment profiles:'); ?></p>
  65. <ul class="disc">
  66. <?php foreach($profiles as $profile):?>
  67. <?php $profileIdHtml = ($this->getCanViewProfiles() ? sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getProfileUrl($profile)), $this->escapeHtml($this->getObjectData($profile, 'reference_id'))) : $this->escapeHtml($this->getObjectData($profile, 'reference_id')));?>
  68.     <li><?php echo $this->__('Payment profile # %s: "%s".', $profileIdHtml, $this->escapeHtml($this->getObjectData($profile, 'schedule_description')))?></li>
  69. <?php endforeach;?>
  70. </ul>
  71. <?php endif;?>
  72. <div><?php echo $this->__('Please note for bank transfer you need to  confirm your payment through') ?></div>
  73. <div><a href="#"><?php echo $this->__('payment confirmation') ?></a><span><?php echo $this->__('page or from the link in your email') ?></span></div>
  74. <!-- <div class="buttons-set"> -->
  75.     <!-- <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> -->
  76.     <div 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></div>
  77. <!-- </div> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement