1. Magento MySQL Konfiguration
Login und Passwort der MySQL Konfiguration findet man unter Magento in der Datei: app/etc/local.xml
Hier ein Beispiel dieser Datei:
<?xml version="1.0"?>
<config>
<global>
<install>
<date><![CDATA[Mon, 19 Sep 2011 15:20:58 +0000]]></date>
</install>
<crypt>
<key><![CDATA[########]]></key>
</crypt>
<disable_local_modules>false</disable_local_modules>
<resources>
<db>
<table_prefix><![CDATA[]]></table_prefix>
</db>
<default_setup>
<connection>
<host><![CDATA[localhost]]></host>
<username><![CDATA[#######]]></username>
<password><![CDATA[#######]]></password>
<dbname><![CDATA[#######]]></dbname>
<active>1</active>
</connection>
</default_setup>
</resources>
<session_save><![CDATA[db]]></session_save>
</global>
<admin>
<routers>
<adminhtml>
<args>
<frontName><![CDATA[admin]]></frontName>
</args>
</adminhtml>
</routers>
</admin>
</config>
2. Ein kleines Script zum Löschen von Produktattributen
Mit dem Script lassen sich beliebige Produktattribute löschen. Auch solche, die nicht über das Magento Backend gelöscht werden können
require_once ‘../app/Mage.php’;
$attribute_code = “my_attr_code”;
$store_id = 0;
Mage::app()->setCurrentStore($store_id);
$setup = new Mage_Eav_Model_Entity_Setup(‘core_setup’);
$setup->removeAttribute( ‘catalog_product’, $attribute_code);
Related posts:
]]>