Get Current Cart Items Grand total :
$cartGrandTotal = Mage::getSingleton(‘checkout/cart’)->getQuote()->getGrandTotal();
Get Current Current Card Items ID :
Mage::getSingleton(‘core/session’, array(‘name’ => ‘frontend’));
$cart = Mage::getModel(‘checkout/cart’);
$ids = $cart->getProductIds();
foreach($ids as $prdID)
{
echo $prdID;
echo ‘<br>’;
}
( or )
$items = Mage::getSingleton(‘checkout/session’)->getQuote()->getAllItems();
foreach($items as $item) {
echo ‘ID: ‘.$item->getProductId().'<br />’;
echo ‘Name: ‘.$item->getName().'<br />’;
echo ‘Sku: ‘.$item->getSku().'<br />’;
echo ‘Quantity: ‘.$item->getQty().'<br />’;
echo ‘Price: ‘.$item->getPrice().'<br />’;
echo “<br />”;
}
Get Current Current Card Items :
Count$cart = Mage::getModel(‘checkout/cart’)->getQuote()->getData();
if(isset($cart[‘items_qty’])){
$currentCard_noof_item = (int)$cart[‘items_qty’];
} else {
$currentCard_noof_item = 0;
}
Get Payment Method name:
$order_collection = Mage::getModel(‘sales/order’)->load($order_id);
echo ‘payment information’. $payment = $order_collection->getPayment()->getMethodInstance()->getTitle();
Get Payment Method Title : (Using Query) :
SELECT * FROM core_config_data WHERE path=’YOUR PATH'”