luca.lb Posted March 18, 2010 Share Posted March 18, 2010 Hello,Every night I run a cron that regenerates products image.I currently do this manually by the adminhow can I do to run the page from CRON? Link to comment Share on other sites More sharing options...
tomerg3 Posted March 18, 2010 Share Posted March 18, 2010 You run a cron every night?Why do you want to regenerate the images every night? Link to comment Share on other sites More sharing options...
luca.lb Posted March 19, 2010 Author Share Posted March 19, 2010 Beacause I've developed a script to import the new products and images every night. Link to comment Share on other sites More sharing options...
luca.lb Posted March 20, 2010 Author Share Posted March 20, 2010 do you have a solution? Link to comment Share on other sites More sharing options...
rocky Posted March 20, 2010 Share Posted March 20, 2010 Can't you just schedule the cron job through your cPanel? You should be able to specify the PHP file, then specify what time it runs every night. Link to comment Share on other sites More sharing options...
tomerg3 Posted March 20, 2010 Share Posted March 20, 2010 The function that prestashop uses to rebuild the thumbnails is _regenerateThumbnails() it's in admin/tabs/AdminImages.php.You can include it in your file, and call the function, or just copy the function to the file you wrote. Link to comment Share on other sites More sharing options...
shagshag Posted April 6, 2010 Share Posted April 6, 2010 Hi,Maybe this can help you : http://www.prestastore.com/back-office-tools/671-crontab-for-prestashop.html 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