Jump to content

Page Not Loading When Webservice Is Down


Recommended Posts


Hello,

I made a module-widget which communicates with an external webservice with curl.

The problem is when this webservice is down for maintenance etc the pages I have this widget on aren't loading at all.

Or when an order is made, I use hookActionValidateOrder to send data. When their service is down the confirmation page never loads.

How can I make it that after e.g. 1 sec if there is no response, prestashop just continues ? 

Thank you in advance!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...