Jump to content

Overriding homeslider stops new images from loading


Recommended Posts

I overrode the default homeslider module and modified it a bit. But when I load new images on the configure page they don't load properly. A big question mark is shown instead.

I found the images are uploaded inside the override/modules/homeslider/images folder, but the shop tries to load them from the default modules folder, /modules/homeslider/images.

 

The default images show up fine (unless I upload them again), I suppose this is because they actually exist with the same name in the original modules folder.

 

How do I change the module so it loads the images from the override folder?

Link to comment
Share on other sites

in this case you have to change path where the images will be stored

elseif (!ImageManager::resize($temp_name, dirname(__FILE__).'/images/'.$salt.'_'.$_FILES['image_'.$language['id_lang']]['name'], null, null, $type))

i mean this part dirname(__FILE__).'/images/'

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