NeedZoom Posted January 22, 2016 Share Posted January 22, 2016 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 More sharing options...
NeedZoom Posted January 22, 2016 Author Share Posted January 22, 2016 I have add the url with cron pannel from the heberger and it work fine but not working with cron of the presatshop. The url is: http://mydomaine.fr/ folder/cron.php Link to comment Share on other sites More sharing options...
NeedZoom Posted January 25, 2016 Author Share Posted January 25, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now