Re: Event Variables?
Posted: Wed May 08, 2019 5:07 am
Either send an email or add to error logs with: $this->log->write .// Not sure what to do when there is an error with curl, send email? Store in DB and retry? TBD for now.
OpenCart Community Forum - Discuss shopping cart and e-commerce solutions.
https://forum.opencart.com/
Either send an email or add to error logs with: $this->log->write .// Not sure what to do when there is an error with curl, send email? Store in DB and retry? TBD for now.
I'd rather have it try again every X minutes for a while before throwing an error. So an error might have to get passed to a Perl script, or stored in a DB with a crontab that picks it up. I dunno yet. Not too worried about it. I still need to make a screen, or modify the current order screen, so you can re-post an order too.straightlight wrote: ↑Wed May 08, 2019 5:07 amEither send an email or add to error logs with: $this->log->write .// Not sure what to do when there is an error with curl, send email? Store in DB and retry? TBD for now.
$this->log->write will not throw any errors. It will rather capture background error operations and store them into your log file which can then be viewable either from FTP in your storage/logs folder or from your OC admin - > systems - > maintenance - > error log page.head_dunce wrote: ↑Wed May 08, 2019 5:35 amI'd rather have it try again every X minutes for a while before throwing an error. So an error might have to get passed to a Perl script, or stored in a DB with a crontab that picks it up. I dunno yet. Not too worried about it. I still need to make a screen, or modify the current order screen, so you can re-post an order too.straightlight wrote: ↑Wed May 08, 2019 5:07 amEither send an email or add to error logs with: $this->log->write .// Not sure what to do when there is an error with curl, send email? Store in DB and retry? TBD for now.
For now, I'm moving onto the next project.