$order_id = 100; //order id goes here
$_order = Mage::getModel(‘sales/order’)->load($order_id);
$_cctype = ”;
if(!empty($_order))
{
$_cctype = $_order->getPayment()->getCcTypeName();
}
echo $_cctype;
$_order = Mage::getModel(‘sales/order’)->load($order_id);
$_cctype = ”;
if(!empty($_order))
{
$_cctype = $_order->getPayment()->getCcTypeName();
}
echo $_cctype;
(Visited 79 times, 1 visits today)