Jump to content

Cron And Webservice Script


NeedZoom

Recommended Posts

Hi,

 

I have create and test a script that create new product from file txt in another server.

I run the script with url in browser and i put PSWebServiceLibrary.php with the same directory of the script.

 

Now, i want to create product with cron of prestashop (the same script) but i dont konw how i do it ? and where i put the PSWebServiceLibrary.php and the my script.php

 

Thanks

Link to comment
Share on other sites

hi,

 

i have changed my script like this:

$key_num =  Tools::getValue('secure_key') ;
if ($key_num == $key){
echo $key_num."<br/>";
//code for import from txt 
}else{
echo "no<br/>";
}

in prestashop cron i add this url :

http://mydomaine.fr/ folder/cron.php?secure_key=key_webservice

this url work in borswer and not working with cron of prestashop ?!

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...