We have added an in-store pick up shipping method to our magento stores. We would like to display travel instructions to the store on the thank you page.
Any ideas on how I can go about displaying this information?
At your checkout/success.phtml
you can do something like this:
$order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId());
if ($order->getShippingMethod() == 'your_shipping_method_code') {
// display travel instructions
}
getLastOrderId
produce inaccurate results on busy stores? Can't you just grab the quote/order singleton?
Commented
Feb 26, 2013 at 18:02
getLastOrderId
by themselves in Mage_Checkout_Block_Success
.
Commented
Feb 26, 2013 at 18:06
getLastOrderId
nor quote/order
singleton are not working at checkout success page. Please see my updated answer for a solution.
Commented
Feb 26, 2013 at 19:23