magento: is there a way to “run profile” with cron?

后端 未结 3 1316
陌清茗
陌清茗 2021-01-25 11:27

I have an export profile on magento 1.6 and I can run it manually (\"Run profile in popup\"), but I need it to run automatically every day. Is there a way to set up a cron job t

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-25 12:27

    There are other things to consider, but in short, all you need is

    Mage::getModel("dataflow/profile")
        ->load(5) // id of the desired profile
        ->run();
    

提交回复
热议问题