Just call: $payment = $order->getPayment()->getMethodInstance()->getTitle();
Magento
Posted on:
How to get country name from country ID in Magento?
This one is quite simple: $countryName = Mage::getModel(’directory/country’)->load($country_id)->getName();
PHP
Posted on:
How to fix broken serialized string in php?
From time to time previously serialized array will get broken. The most common problem occurs when string length is invalid so instead of a:2:{i:758;s:4:”test”;i:759;s:4:”test”;} you have a:2:{i:758;s:4:”test”;i:759;s:9:”test”;} becouse […]