Magento override controller

后端 未结 5 865
你的背包
你的背包 2021-01-05 12:13

I would like to do the above. Ive overridden many files in the past...block, model, helper....but this one eludes me.

Can anyone see what im doing wrong here: (ive e

5条回答
  •  广开言路
    2021-01-05 12:28

    I'm leaving this here for the next poor developer forced to work with this jalopy. Much of the instructions here are pasted from the magento docs which like its source, is a twisted labyrinth of misdirection. Okay enough complaints...

    This worked for me in version 1.8

    Create your namespace and module: /app/code/local/MyNameSpace/MyModule

    Create your module config: /app/code/local/MyNameSpace/MyModule/etc/config.xml

    
    
    
        
            0.1.0
        
    
    
        
            
                
                    
                        MyNameSpace_MyModule_Checkout
                    
                
            
        
    
    

    Create your controller: /app/code/local/MyNameSpace/MyModule/controllers/Checkout/CartController.php

    Enable your new module: /app/etc/modules/MyNameSpace_All.xml

    
    
      
        
            true
            local
        
      
    
    

    That's all thats needed. Now go celebrate, you just polished a turd! ;)

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题