Jump to content

Products import to PrestaShop with cron


E.D.
 Share

Recommended Posts

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

Share this post


Link to post
Share on other sites

  • 2 months later...
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.

Share this post


Link to post
Share on other sites

  • 3 weeks later...

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=submit

with 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 this

wget SAVE cookies cookies.txt http://login_url plus postdata

then..

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.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More