At the exit side of the order process the order id is not shown. Here the content of our ‘success.phtml’:
<div class="page-head"> <h3><?php echo $this->__('Your order has been received') ?></h3> </div> <p><strong><?php echo $this->__('Thank you for your purchase!') ?></strong></p> <p> <?php echo $this->__('Your order # is: %s', $this->getOrderId()) ?>.<br/> <?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?><br/> </p> <div class="button-set"> <button class="form-button" onclick="[removed]='<?php echo $this->getUrl() ?>'"><span><?php echo $this->__('Continue Shopping') ?></span></button> </div>
Thank you - now it’s working. I am wondering why there is such an error in the magento files available for download....
I am using Magento 1.0.19870.4.
That is odd...I just checked the default template on the most recent release and it does use:
<?php echo $this->__('Your order # is: %s', $this->getOrderId()) ?>
I just tried a test order using the default template and it doesn’t output the order-id. We use the other method because we pass the order-id thru to various click-tracking, ad-tracking software on the checkout success page. Glad to here that it works for you, though.