magento cron in backend configuration

后端 未结 3 871
無奈伤痛
無奈伤痛 2020-12-13 21:33

So I know how to setup a cron using the config.xml crontab stuff:


    
        
            

        
3条回答
  •  我在风中等你
    2020-12-13 22:18

    A better solution that doesn't involve a custom backend model.

    config.xml

       
    
        
            
                0.1.0
            
        
        
            
                
                    Company_Export_Model
                
            
        
        
                            
                
                    */5 * * * *
                
            
        
        
                            
                
                    
                        export/order/cron_settings
                    
                    
                        company_export/observer::exportOrderData
                    
                
            
        
    
    

    system.xml

    
    
        
            
                
                99999
            
        
        
            
                
                feedsconfig
                text
                10000
                1
                
                    
                        
                        text
                        2
                        1
                        
                             
                                
                                text
                                40
                                Use Crontab Format (Eg. "*/5 * * * *" for every 5 minutes)
                                1
                            
                        
                    
                
            
        
    
    

提交回复
热议问题