I am having trouble getting the following function to work:
Mage::getModel('sales/order');
I attempted this, however it returned no results:
$res=Mage::getModel('sales/order');
$orderId=$res->getOrderId();
echo '<pre>';
print_r($orderId);
I am having trouble getting the following function to work:
Mage::getModel('sales/order');
I attempted this, however it returned no results:
$res=Mage::getModel('sales/order');
$orderId=$res->getOrderId();
echo '<pre>';
print_r($orderId);
I guess by
res
you mean resource so I'll make a leap of logic and assume you mean to query a resource collection.