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

Modules outside /app/local/Mage (own directory) !? 
 
wolkenkraft
Jr. Member
 
Avatar
Total Posts:  27
Joined:  2007-09-29
 

Hi out there!

I’m working on an extension module for magento. I already built a Payment Module, wich was placed in /app/code/local/Mage. My new module should be placed in /app/code/local/mike. Below this directory all new Modules shall be placed.

I configured the xml files as they should be i think, but it won’t work. The module was placed in /app/code/local/Mage before and it worked. So i think there is a problem with the path in my config files. Maybe anyone can give me an idea!? Here are my files:

/app/etc/modules/Mike_FSK18.xml:

<config>
    <
modules>
        <
Mike_FSK18>
            <
active>true</active>
            <
codePool>local</codePool>
            <
version>0.1.0</version>
        </
Mike_FSK18>
    </
modules>
</
config>

/app/code/local/Mike/FSK18/etc/config.xml

<config>
    <global>
        <
models>
             <
FSK18>
                <class>
Mike_FSK18_Model</class>
            </
FSK18>
            <
catalog>
                <
rewrite>
                    <
product>Mike_FSK18_Model_Product</product>
                </
rewrite>
            </
catalog>
        </
models>
    </global>
</
config>

/app/code/local/Mike/FSK18/Model/Product.php

<?php
class Mike_FSK18_Model_Product extends Mage_Catalog_Model_Product {

    
public function getPrice()
    
{
        
die('überlagert ole');
    
}
}
?>

Has anyone an idea, where i made my mistake!?
Thanks a lot & Ciao,
Mike

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