Got a question? We have the Answer. Anything you need to know about couponPHP

Setting up your cronjobs for CouponPHP

On the 01 August 2016

CouponPHP uses periodically running scripts (cronjobs) to automatize some tasks

The email cron

  1. Login to your admin area and navigate to Configuration > Manage Accounts > Email
  2. Fill in the “Sender Email” and “Sender Name” fields. Your emails will be sent using these details. If you have an SMTP account you can set it up here as well.
  3. Below the form you must see an input field with details similar to this:
    * * * * *    cd /home/couponscript/public_html/cronjobs && php email_queue.php

    This is a crontab entry. The first part of the entry is responsible for timing (* * * * * means: Every minute, Every hour, Every day, Every Month, Every day of the week)
    The 2nd part is the actual command to run

  4. Now head over to your hosting’s cPanel and select “Cronjobs” from the menu
  5. Fill the form with the details from your admin panel. It should look similar to this:
    cronjob1
  6. Your email cron is now set up

The CouponFeed cron

  1. Login to your admin area and navigate to Configuration > Manage Accounts > couponFeed
  2. Enter your api key. You can find your API key inside your Client’s area.
  3. Try out couponFeed by doing a manual fetch in Feeds / Import > couponFeed fetch.
  4. Below the form you must see an input field with details similar to this:
     */20 * * * *    cd /home/couponscript/public_html/cronjobs && php  php couponfeed.php

    This is a crontab entry. The first part of the entry is responsible for timing (*/20 * * * * means: Every 20th minute, Every hour, Every day, Every Month, Every day of the week)
    The 2nd part is the actual command to run

  5. Now head over to your hosting’s cPanel and select “Cronjobs” from the menu
  6. Fill the form with the details from your admin panel. It should look similar to this:
    cronjob2
  7. The couponFeed cron is now set up

The iCodes cron

  1. Login to your admin area and navigate to Configuration > Manage Accounts > iCodes
  2. Enter your iCodes username and Subscription ID. You can find your ID right after logging in to iCodes.
  3. Try out iCodes by doing a manual fetch in Feeds / Import > iCodes fetch.
  4. Below the form you must see an input field with details similar to this:
    0 * * * *    cd /home/couponscript/public_html/cronjobs && php  php icodes.php

    This is a crontab entry. The first part of the entry is responsible for timing (0 * * * * means: Every 0th minute, Every hour, Every day, Every Month, Every day of the week)
    The 2nd part is the actual command to run

  5. Now head over to your hosting’s cPanel and select “Cronjobs” from the menu
  6. Fill the form with the details from your admin panel. It should look similar to this:cronjob3
  7. The couponFeed cron is now set up

Now that you have a solid stream of coupons and deals its time to add some analytics.