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?
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
}
getLastOrderIdproduce inaccurate results on busy stores? Can't you just grab the quote/order singleton? – Ben Lessani Feb 26 '13 at 18:02getLastOrderIdby themselves inMage_Checkout_Block_Success. – Tim Bezhashvyly Feb 26 '13 at 18:06getLastOrderIdnorquote/ordersingleton are not working at checkout success page. Please see my updated answer for a solution. – Tim Bezhashvyly Feb 26 '13 at 19:23