config.xml 5.33 KB
<?xml version="1.0"?>
<!--/**
* @package magento
* @subpackage AncPricepercustomer
*
* @author netz.coop code[at]netz.coop
*
* @license http://www.gnu.org/licenses/gpl-3.0.de.html GNU GENERAL PUBLIC LICENSE VERSION 3
* @copyright (C) 2015 netz.coop eG
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/-->
<config>
    <modules>
        <Anc_Pricespercustomer>
            <version>0.1.0</version>
        </Anc_Pricespercustomer>
    </modules>
    <frontend>
        <events>
            <catalog_product_collection_load_after>
                <observers>
                    <pricespercustomer>
                        <type>singleton</type>
                        <class>anc_pricespercustomer/observer</class>
                        <method>catalogProductCollectionLoadAfter</method>
                    </pricespercustomer>
                </observers>
            </catalog_product_collection_load_after>
            <catalog_product_get_final_price>
                <observers>
                    <pricespercustomer>
                        <type>singleton</type>
                        <class>anc_pricespercustomer/observer</class>
                        <method>catalogProductLoadAfter</method>
                    </pricespercustomer>
                </observers>
            </catalog_product_get_final_price>
        </events>
        
    </frontend>
    <admin>
        <routers>
            <anc_pricespercustomer>
                <use>admin</use>
                <args>
                    <module>Anc_Pricespercustomer</module>
                    <frontName>pricespercustomer</frontName>
                </args>
            </anc_pricespercustomer>
			
			
            <adminhtml>
                <args>
                    <modules>
                        <anc_pricespercustomer before="Mage_Adminhtml">Anc_Pricespercustomer_Adminhtml</anc_pricespercustomer>
                    </modules>
                </args>
            </adminhtml>
        </routers>
		
    </admin>
    <adminhtml>
        <menu>
            <Anc_Anc module="pricespercustomer">
                <title>ANC</title>
                <sort_order>71</sort_order>               
                <children>
                    <items module="pricespercustomer">
                        <title>Kundenpreise</title>
                        <sort_order>6</sort_order>
                        <action>pricespercustomer/adminhtml_priceslists/list</action>
                    </items>
                </children>
            </Anc_Anc>
        </menu>
        <layout>
            <updates>
                <pricespercustomer>
                    <file>anc/pricespercustomer.xml</file>
                </pricespercustomer>
            </updates>
        </layout>
        <translate>
            <modules>
                <Anc_Pricespercustomer>
                    <files>
                        <default>anc/pricepercustomer.csv</default>
                    </files>
                </Anc_Pricespercustomer>
            </modules>
        </translate>        
    </adminhtml>
    <global>
        <models>
            <anc_pricespercustomer>
                <class>Anc_Pricespercustomer_Model</class>
                <resourceModel>anc_pricespercustomer_mysql4</resourceModel>
            </anc_pricespercustomer>
            <anc_pricespercustomer_mysql4>
                <class>Anc_Pricespercustomer_Model_Mysql4</class>
                <entities>
                    <entity>
                        <table>anc_pricespercustomer_entity</table>
                    </entity>
                </entities>
            </anc_pricespercustomer_mysql4>

        </models>
        <resources>
            <anc_pricespercustomer_setup>
                <setup>
                    <module>Anc_Pricespercustomer</module>
                </setup>
                <connection>
                    <use>core_setup</use>
                </connection>
            </anc_pricespercustomer_setup>
            <anc_pricespercustomer_write>
                <connection>
                    <use>core_write</use>
                </connection>
            </anc_pricespercustomer_write>
            <anc_pricespercustomer_read>
                <connection>
                    <use>core_read</use>
                </connection>
            </anc_pricespercustomer_read>
        </resources>
       
        <blocks>
            <pricespercustomer>
                <class>Anc_Pricespercustomer_Block</class>
            </pricespercustomer>
            <pricespercustomer_adminhtml>
                <class>Anc_Pricespercustomer_Block_Adminhtml</class>
            </pricespercustomer_adminhtml>
        </blocks>
        <helpers>
            <pricespercustomer>
                <class>Anc_Pricespercustomer_Helper</class>
            </pricespercustomer>
        </helpers>

    </global>
</config>