Get product order history
List all orders related to a product id
Copy this code and paste it in your HTML
$quotes= Mage::getResourceModel('sales/order_collection')
->join('order_item', 'entity_id=order_id') ->addFieldToFilter('main_table.store_id', array('eq' => 5)) ->addFieldToFilter('order_item.product_id', array('eq' => $argv[1]))
;
Report this snippet
Comments
Subscribe to comments