Jump to content

How call function of regenerating images from an external script?


kiko
 Share

Recommended Posts

How call function of regenerating images from an external script?

Function definition:
private function _regenerateThumbnails ($ type = 'all', $ deleteOldImages = false)

This function it's private and can't call from other script.

My source,script it's placed in admin prestashop dir:

   define('PS_ADMIN_DIR', getcwd());

   include(PS_ADMIN_DIR.'/../config/config.inc.php');
   include(PS_ADMIN_DIR.'/functions.php');
   include_once './tabs/AdminImages.php';

   $import = New AdminImages();
   $type = 'products';
   $deleteOldImages = false;
   $import->_regenerateThumbnails($type,$deleteOldImages);



Thx

Share this post


Link to post
Share on other sites

  • 2 weeks later...

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