如何设置一个cron作业在Magento? [英] How to setup a CRON JOB in MAGENTO?

查看:250
本文介绍了如何设置一个cron作业在Magento?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置一个 cron作业在Magento。
我requiremen-:在我们的商店这是建立在Magento,客户,产品和放大器;一线价格在.csv文件中,我们手工输入,直到时间的到来。

因此​​,我们现在正在阅读的 .csv文件这就是Magento的放置通过的 PHP 。我们取在通过PHP和放CSV文件中的数据;插入在Magento数据库的相关表中的数据。

因此​​,对于我做了哪些外部连接到Magento的DB&放php文件;做取和放大器的要紧任务;插入数据。
现在,如何设置的 cron作业,所以这个过程将成为自动...我通过Magento的网站消失了,他们提到如何设置cron作业?

<$p$p><$c$c>http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/how_to_setup_a_cron_job

但还有的疑惑...
因此,任何人可以给我解释一下我应该怎么设置cron作业,以便此示例PHP文件工作和放大器;我们获取和放的过程;插入客户,产品,价格等成为自动

PLZ给我提供的基本信息。如何设置cron作业在Magento以上的场景或者我们使用PHP的帮助下创建cron作业?

  http://net.tutsplus.com/tutorials/php/managing-cron-jobs-with-php-2/

如果任何人有样code为相同,这将真正帮助我很多...

PLZ指导我。


解决方案

没什么指定与Magento的,这只是另一种PHP脚本。刚成立的cron运行命令行适当的脚本

PHP /路径脚本/运行script.php

I want to setup a CRON JOB in Magento. My requiremen-: In our shop which is built in Magento, Customers,products & tier prices are coming in .csv file which we manually importing till the time.

So now we are reading that .csv file which is where Magento is placed through PHP. We fetch that data in csv file through php & insert data in relevant tables of Magento database.

So for that I made php file which externally connected to Magento db & do the needful task of fetching & inserting data. Now how to setup CRON job so that this process will become automatic...I gone through Magento website where they mention How to setup a cron job?

http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/how_to_setup_a_cron_job

but still have a plenty of doubts... So can anybody explain me how should I set up cron job so that this sample php file work & our process of fetching & inserting Customer, products, Pricing etc. become automatic?

Plz provide me basic info. on how to setup cron job in Magento for above scenario or can we use CRON job created with the help of PHP?

http://net.tutsplus.com/tutorials/php/managing-cron-jobs-with-php-2/

If anyone have sample code for the same that will really help me alot...

plz guide me.

解决方案

it's nothing specify related to Magento, which is just another php script. just set up the cron to run the appropriate script from the command line

php /path to script/script.php

这篇关于如何设置一个cron作业在Magento?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆