Jump to content

Prestashop 1.7 - Unable to load template file helpers/uploader/ajax.tpl for HelperImageUploader


Recommended Posts

Hi. In my module I use HelperImageUploader and when I try to render it I have exeption

Unable to load template file helpers/uploader/ajax.tpl

 

The source code:

$image_uploader = new HelperImageUploader('custom_thumb');
$image_uploader->setMultiple(false)
      ->setUseAjax(true)
      ->setUrl($this->getAjaxUrl().'&ajax=1&action=uploadImage');
$image_uploader->render();

In version 1.6 this method render internal prestashop admin template from /admin/themes/default/template/helpers/uploader/ajax.tpl

Link to comment
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
×
×
  • Create New...