*/ class Mage_Sales_Model_Resource_Quote_Address_Attribute_Backend_Child extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract { /** * Set store id to the attribute * * @param Varien_Object $object * @return Mage_Sales_Model_Resource_Quote_Address_Attribute_Backend_Child */ public function beforeSave($object) { if ($object->getAddress()) { $object->setParentId($object->getAddress()->getId()) ->setStoreId($object->getAddress()->getStoreId()); } parent::beforeSave($object); return $this; } }