如何在 magento 中查找哪个文件具有将数据插入 table 的代码

how to find which file has code to insert data into table in magento

我的数据库中有一个 table mag_sales_bestsellers_aggregated_daily

我想找到一个 PHP 文件,其中包含将数据添加到上述 table 中的代码。我认为将数据添加到上面 table 的文件是一个 crontab 文件。我不知道 crontab 文件的位置。

请帮忙。

正在通过 crontab 文件添加数据,您可以在 Mage_Sales 模块中找到该文件。

app/code/core/Mage/Sales/etc/config.xml 此文件中定义了 crontab 设置。

您可以在此处找到 php 代码 app/code/core/Mage/Sales/Model/Observer.php

希望这对您有所帮助