2

Hi i'm making a copy of the Shipping-Model for my own purposes. But i cannot find the point where the

sales_flat_shipment_grid

is filled. Can anybody show me? I'm on magento 1.9CE

1
  • This is used for shipments. Not quite sure what your question means, esp in context of making copy of shipping model, more detail is required. Commented Nov 10, 2014 at 4:53

1 Answer 1

3

In the Mage_Sales_Model_Abstract there is this method.

public function afterCommitCallback()
{
    if (!$this->getForceUpdateGridRecords()) {
        $this->_getResource()->updateGridRecords($this->getId());
    }
    return parent::afterCommitCallback();
} 

This is called when a model is saved (including shipment).
This method calls Mage_Sales_Model_Resource_Order_Abstract::updateGridRecords.
That's the one that insert values in grid tables.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.