Posts

Showing posts from January, 2019

How to Display Order ID on Your Checkout Success Page?

Image
It is important to use the checkout success page effectively for the customers. You can use tricks that help your customers to remain on the page so that you get the opportunity to increase your sales. You can easily obtain order ID with the help of existing code < ? php $orderId = $this-> getOrderId ( ); ?> Now load order with the help of this particular order ID and fetch the data required < ? php $order =   Mage : : getModel ( 'sales/order' ) -> load ( $orderId );   ?> You can also get other details along with order ID using the code mentioned below < ? php $orderId =   Mage : : getSingleton ( 'checkout/session' ) -> getLastRealOrderId ( ); $order =   Mage : : getSingleton ( 'sales/order' ) -> loadByIncrementId ( $orderId ); ?> How to fetch order details from your order ID The code snippet mentioned below will help you obtain order details like order items, customer billing, payment and shipp...