| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Custom Module that Runs Every Hour | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Custom Module that Runs Every Hour
I've got a blank new module. How would I go about adding some functionality to get my module to push product information to a third party every hour?
I'm totally new to writing modules for X-Cart. How do I find what functions I can extend/override? PHP Code:
__________________
--- X-Cart 5.2.7 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Custom Module that Runs Every Hour
You want to tap into X-Cart 5's cron jobs. You will see a database table called tasks that lists these jobs.
http://kb.x-cart.com/pages/viewpage.action?pageId=7504112 --this is how you setup your server to run X-Cart's cron. In your YAML file you put something like this: Code:
Then you further define the task in your Sync.php like this: Code:
You can see that my example refers to an updateInterval you create such a setting in your YAML file like this: Code:
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|