*/ class Mage_Tax_Model_Resource_Sales_Order_Tax_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract { /** * Resource initialization */ protected function _construct() { $this->_init('tax/sales_order_tax'); } /** * Retrieve order tax collection by order identifier * * @param Varien_Object $order * @return Mage_Tax_Model_Resource_Sales_Order_Tax_Collection */ public function loadByOrder($order) { $orderId = $order->getId(); $this->getSelect() ->where('main_table.order_id = ?', (int)$orderId) ->order('process'); return $this->load(); } }