Display Message On Thank You Page If Shipping Method Is Equal To
-
16-10-2019 - |
문제
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
}
제휴하지 않습니다 magento.stackexchange