Search code examples
modulefeedopencartcron-task

Create custom feed in opencart


I want to create a product feed in opencart. But I have problem, where I can't understand how can I periodically once in 3 hours update that feed.

Is there any examples or tutorials how to create automatic processes?

Because the solution what I am thinking of is to create controller witch updates feed upon execution -> create unix or winx cron-job, but as I scroll trough internet those feed extensions doesn't use those...


Solution

  • The XML feeds could be created in two general ways:

    1. have a service under specific URL that when hit will create the very up to date XML dynamicaly
    2. have a service that is manualy run at certain time that creates a static XML feed that is then accessed and read

    I guess that You are asking about the second case while mixing the first case in.

    To answer Your question - You would need to use the second case thus have a controller that creates a static XML feed file saved somewhere on the server. The action of that controller will then be called via crontab to update the XML file (or just to throw the old one away and create a new one).

    I do not see any problem here... Do You?