Warning: Never execute these statements on a production system!
The following query generates an update script according to a pattern you define. In this example the pattern is “your-domain.com”. Replace it with your own domain.
|
1 2 |
select concat('update core_config_data set value = \'test@example.com\' where path = \'', path, '\';') from core_config_data where value like '%@ihre-domain.de%' |
The resulting script might look like this:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
update core_config_data set value = 'test@example.com' where path = 'general/imprint/email'; update core_config_data set value = 'test@example.com' where path = 'sitemap/generate/error_email'; update core_config_data set value = 'test@example.com' where path = 'sales_email/order/copy_to'; update core_config_data set value = 'test@example.com' where path = 'sales_email/order_comment/copy_to'; update core_config_data set value = 'test@example.com' where path = 'sales_email/invoice/copy_to'; update core_config_data set value = 'test@example.com' where path = 'sales_email/invoice_comment/copy_to'; update core_config_data set value = 'test@example.com' where path = 'sales_email/shipment/copy_to'; update core_config_data set value = 'test@example.com' where path = 'sales_email/shipment_comment/copy_to'; update core_config_data set value = 'test@example.com' where path = 'sales_email/creditmemo/copy_to'; update core_config_data set value = 'test@example.com' where path = 'sales_email/creditmemo_comment/copy_to'; update core_config_data set value = 'test@example.com' where path = 'trans_email/ident_general/email'; update core_config_data set value = 'test@example.com' where path = 'trans_email/ident_sales/email'; update core_config_data set value = 'test@example.com' where path = 'trans_email/ident_support/email'; update core_config_data set value = 'test@example.com' where path = 'trans_email/ident_custom1/email'; update core_config_data set value = 'test@example.com' where path = 'trans_email/ident_custom2/email'; update core_config_data set value = 'test@example.com' where path = 'contacts/email/recipient_email'; update core_config_data set value = 'test@example.com' where path = 'paypal/general/business_account'; update core_config_data set value = 'test@example.com' where path = 'samples/email/recipient_email'; update core_config_data set value = 'test@example.com' where path = 'bewertung/email/recipient_email'; |
Warning: Never execute these statements on a production system!
Changing Magento store email addresses in a local installation
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.