Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Fetching all pending orders in Magento

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 663
    Comment on it

    Fetching all pending orders and customer details in magento

    <?php  $orders = Mage::getModel('sales/order')->getCollection()
                        ->addFieldToFilter('status', 'pending')
                        ->addAttributeToFilter('store&#95;id',48);
    ?>
    <?php foreach ($orders as $order): 
    echo $order->getIncrementId();
    echo $order->getCreatedAt();
    echo $order->getShippingDescription();
    echo $order['customer&#95;firstname']." ".$order['customer&#95;lastname'];
    echo $order['base&#95;grand&#95;total'];
     endforeach; ?>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: