Setup own Cronjob within Aimeos

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
cyrotek
Posts: 58
Joined: 27 Jun 2019, 16:43

Setup own Cronjob within Aimeos

Post by cyrotek » 05 Jul 2019, 09:05

Hello,

I would like to add a new CronJob that is responsible to connect to the accounting system and generate customer, invoices, recurring invoices for subscriptions and such, is there a documentation on how to add a new one or is there one that i could "adapt" for my needs?

Regards

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Setup own Cronjob within Aimeos

Post by aimeos » 05 Jul 2019, 12:21

- https://aimeos.org/docs/TYPO3/Install_A ... uler_tasks (Process order delivery services)
- https://aimeos.org/docs/Developers/Library/Service (Implement a new delivery provider)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cyrotek
Posts: 58
Joined: 27 Jun 2019, 16:43

Re: Setup own Cronjob within Aimeos

Post by cyrotek » 05 Aug 2019, 09:55

Is there a way to "manualy" run the cronjob so i can bug track it easier, like an url to call upon?

EDIT: Is there also a flag or something gonna be set so the system knows the order was processed or will it loop through all orders period and its upon me to check if the order was processed?

If there's a flag, I would appreciate a hint where to reset it, as I am just testing for now.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Setup own Cronjob within Aimeos

Post by aimeos » 06 Aug 2019, 08:07

The flag is the order delivery status in mshop_order table. Set it to -1 (unfinished) to process orders again.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cyrotek
Posts: 58
Joined: 27 Jun 2019, 16:43

Re: Setup own Cronjob within Aimeos

Post by cyrotek » 06 Aug 2019, 08:21

Thanks for the hint, now is there a chance to call an url to process the cronjob manualy?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Setup own Cronjob within Aimeos

Post by aimeos » 06 Aug 2019, 08:24

That's not intended by TYPO3 but you can execute the scheduler tasks from the command line.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cyrotek
Posts: 58
Joined: 27 Jun 2019, 16:43

Re: Setup own Cronjob within Aimeos

Post by cyrotek » 06 Aug 2019, 15:23

Okay, it's loaded and executed, however, going by the linked documentation (https://aimeos.org/docs/Developers/Libr ... y_provider), it throws an error...

"Undefined class constant 'PARTS_ALL' "

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Setup own Cronjob within Aimeos

Post by aimeos » 07 Aug 2019, 09:26

Fixed, must be

Code: Select all

\Aimeos\MShop\Order\Item\Base\Base::PARTS_ALL
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply