Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Probleme mit dem speichern der default_billing und default_shipping Adresse unter Magento 1.7
 
hitchhikers11
Jr. Member
 
Total Posts:  1
Joined:  2011-05-03
 

Nachdem Update auf 1.7 konnte man die default_billing und default_shipping Attribute der Adresse nicht mehr setzen.

DEBUG (7): Exception messageSQLSTATE[42S22]Column not found1054 Unknown column 'customer_entity.value_id' in 'field list'
Trace
#7 magento/app/code/core/Mage/Customer/Model/Resource/Customer.php(166):Mage_Eav_Model_Entity_Abstract->saveAttribute(Object(My_Customer_Model_Customer), 'default_billing')
#8 magento/app/code/core/Mage/Customer/Model/Resource/Customer.php(124):Mage_Customer_Model_Resource_Customer->_saveAddresses(Object(My_Customer_Model_Customer))

Das Problem lag in der Mage_Customer_Model_Resource_Customer in der function _saveAddresses()
Nach dem Löschen der folgenden Zeilen geht es wieder:

if ($customer->dataHasChangedFor('default_billing')) {
            $this
->saveAttribute($customer'default_billing');
}
if ($customer->dataHasChangedFor('default_shipping')) {
            $this
->saveAttribute($customer'default_shipping');
}

Die Default Adressen werden auch ohne diese Zeilen gespeichert.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top