E.D. Posted September 9, 2010 Share Posted September 9, 2010 I've written a php script for PrestaShop. This script imports products to PretaShop. It submits a POST to PrestaShop as a PrestaShop basic (built in/official) import function on admin page (tools tab).This script run by cron. I'am not able to make PrestaShop believe it is logged in, because PrestaShop imports products to PrestaShop, if it is logged in PrestaShop.Please help me someone... Link to comment Share on other sites More sharing options...
d888sp4 Posted November 21, 2010 Share Posted November 21, 2010 I've written a php script for PrestaShop. This script imports products to PretaShop. It submits a POST to PrestaShop as a PrestaShop basic (built in/official) import function on admin page (tools tab).This script run by cron. I'am not able to make PrestaShop believe it is logged in, because PrestaShop imports products to PrestaShop, if it is logged in PrestaShop.Please help me someone... Hi,I interested about your script.Can you tell me about try it?Thanks.Best regards.Carlo Alberto. Link to comment Share on other sites More sharing options...
siadmin Posted December 10, 2010 Share Posted December 10, 2010 hi, dont know if you've figured it out yet.. you can use bash 'wget' command.. or i'm told CURL, but i didnt get it to work with curl..you need to run 2 wget commands, 1.- http://yoursite.com/[email protected]&passwd=yourpassword&Submit=submitwith wget you can place a command to save the cookies to a txt file.. i forget how to do it right now, its been a while..basically it looks like thiswget SAVE cookies cookies.txt http://login_url plus postdatathen..wget LOAD cookies cookies.txt http://other prestatshop url plus postdata..you need to get around the security token too, which means editing admintab.php ..theres instructions for this somewhere in the forum.. again i dont know where, its been months since i did this. 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