$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;
No comments:
Post a Comment