User Tools

Site Tools


urapidflow:run_scheduled

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
urapidflow:run_scheduled [2016/03/22 17:56]
jamby77 [Magento 2]
urapidflow:run_scheduled [2016/12/02 17:15] (current)
jamby77
Line 1: Line 1:
 +====== Running uRapidFlow profiles using cron job ======
  
 +
 +<file php urapidflow.php>​
 +<?php
 +
 +// initialize Magento environment
 +include_once "​app/​Mage.php";​
 +Mage::​app('​admin'​)->​setCurrentStore(0);​
 +
 +$helper = Mage::​helper('​urapidflow'​);​
 +
 +// run profile using ID:
 +$helper->​run(12);​
 +
 +// run profile using name:
 +$helper->​run("​Import Products"​);​
 +
 +// create a batch export:
 +$helper->​run("​Export EAV");
 +$helper->​run("​Export Categories"​);​
 +$helper->​run("​Export Products"​);​
 +$helper->​run("​Export Product Extra Data"​);​
 +</​file>​
 +
 +<file cron>
 +# daily import
 +0 1 * * * /​usr/​bin/​php -f /​magento/​root/​urapidflow.php
 +# OR
 +0 2 * * * /​usr/​bin/​lynx -dump http://​localhost/​magento/​urapidflow.php
 +</​file>​
urapidflow/run_scheduled.txt · Last modified: 2016/12/02 17:15 by jamby77