(Note: You can get this setup as part of your free installation. But if you insist on doing it yourself, keep reading
There are two cron jobs that you need to setup.
1. dap-emailorder.php (every 10 minutes)
This is the email order processing cron, used ONLY for 1ShoppingCart & ClickBank. Skip this if you’re using Paypal.
2. dap-cron.php (every 1 hour):
This is the main scheduler. This sends out all queued bulk mails, autresponder emails, does clean up, etc. This one is mandatory.
How To Setup The Cron Jobs
(A) Before you can set up the cron jobs, you first need to figure out the “Path to PHP” on your web host. They usually have this somewhere in your web site control panel. If not, just ask them or read their wiki.
For eg., on Dreamhost.com, it looks like this:
/usr/local/php5/bin/php
(B) Visit the following url (replace YourSite.com with your actual domain name):
http://www.YourSite.com/dap/getpath.php
This will show something like this in your browser:
/home/.xyz/yoursite/yoursite.com/dap
This is your “local path” to your root folder. Make a note of the “Path to PHP” from (A) and “local path” from (B). You will be using it below.
Setting up the Cron jobs
1. dap-emailorder.php (for 1ShoppingCart & ClickBank only)
This cron job should be set up to run once every 10 minutes. This is the cron script that processes all of your orders from your customers through email. So, if you set this up to run once every 10 minutes, then every 10 minutes, it will log in to your billing email address (you can configure what this email id is within the admin control panel on the “Config” screen) and process the email notifications that you have received from ClickBank or 1ShoppingCart (and its private labels).
The full text to put in where it asks for the “Command to run” on your “Cron Jobs” screen in your control panel, is this:
usr/local/php5/bin/php<insert space>/home/.xyz/yoursite/yoursite.com/dap/dap-emailorder.php
2. dap-cron.php:
This one is mandatory. Should be set up to run once every hour. This hourly process is what sends out all the scheduled broadcast (bulk) emails and processes different types of “bulk actions” – like importing a large list of customers into DAP from an external system, for instance.
The full text to put in where it asks for the “Command to run” on your “Cron Jobs” screen in your control panel, is this:
/usr/local/php5/bin/php<insert space>/home/.xyz/yoursite/yoursite.com/dap/dap-cron.php
Note: Where you see the text <insert space>, replace with an actual space (hitting the space bar).
9 comments ↓
For those using Plesk servers, click on “Cron Jobs” from within your hosting account – then enter in:
0 for the minute
* for the hour
* for the day of the month
* for the month
* for the day of the week
Then the string above. So to set a cron up for every hour of every day, your cron job would look like this:
0**** /usr/local/php5/bin/php /var/www/vhosts/your-website.com/httpdocs/dap/dap-cron.php
[...] to you only if you are already using 1ShoppingCart with DAP (if not, skip to next step): Be sure to disable the “Email Order” cron job from your web hosting control panel (“Cron Jobs” screen), because you don’t want [...]
[...] to you only if you are already using 1ShoppingCart with DAP (if not, skip to next step): Be sure to remove the “Email Order” cron job from your web hosting control panel (“Cron Jobs” screen), because you don’t want [...]
Just to be on the safe side: If I have, say, 2 sites (WordPress) hosted by the same company (say, DreamHost), and I need DAP on both, and they are both integrated with the same shopping cart (say, 1SC), would the cron jobs interfere with each other? Is this a situation that has been tested and supported well?
Sergiu,
Not a problem at all. We ourselves are running multiple web sites: http://Techiiies.com , http://MyWebmasterInABox.com , http://DigitalAccessPass.com , http://S3MediaVault.com – just to name a few – all through the same 1Shoppingcart account (our private label is http://1SiteAutomation.com ). And we have hundreds of DAP users who have DAP installed on multiple sites all powered by same 1SC account. No problems.
Just don’t use the “exact” same product name on different sites, that’s all. Product name is the key. As long as the product names are unique, you can use DAP on unlimited sites all powered by the same shopping cart like 1SC.
DAP has been battle tested for about 16 months now on live web sites. You can rest assured about that.
- Ravi Jayagopal
Mark,
“Command to run” is the same as “Path to PHP” above.
You will need to find this out from your web host.
- Ravi Jayagopal
I’m on hostgator and in the Add new con job there is a “Common Settings” drop down. What should I do with that? Also there is a Minuite, Hour, Day, Month, Weekday that needs to be set. What goes there?
Can you setup both cron jobs even if you are using only PayPal but plan on using Clickbank later?
See this post:
http://www.digitalaccesspass.com/doc/all-about-dap-cron-job/
Leave a Comment