Overridding a Shipping Method - What am I missing

后端 未结 5 1160
生来不讨喜
生来不讨喜 2021-01-12 17:53

I\'ve written many many modules before but for some reason my shipping module won\'t override an exsiting Magneto shipping method. Is that allowed? What am I missing here?

5条回答
  •  囚心锁ツ
    2021-01-12 18:52

    it's been a while but I had the same problem the last days. I wanted to override freeshipping and flatrate shipping methods and in addition to the answer of fab I had to add the following code in etc/config.xml. In my case the original values are located in app/code/core/Mage/Shipping/etc/config.xml.

    
    
        ...
        
            
                
                    your_module/shipping_carrier_flatrate
                
                
                    your_module/shipping_carrier_freeshipping
                
            
        
    
    

    The model values are examples. You have to replace them with your correct paths.

提交回复
热议问题