Jump to content

Prestashop 1.5.6 not recognizing extended core functionality.


David Bucur

Recommended Posts

Hi all,

I am not sure if I am doing something wrong but I am trying override the function resize in classes/ImageManager.php

 

Therefore in override/classes I created the file ImageManager.php which has the following code.

<?php
class ImageManager extends ImageManagerCore
{
	public static function resize($src_file, $dst_file, $dst_width = null, $dst_height = null, $file_type = 'jpg', $force_type = false)
	{
		//resizing code
	  
    }

}

However the modification is not happening.

 

Is something else I have to do?

Edited by david-evolutione (see edit history)
Link to comment
Share on other sites

Thanks El Patron,

deleting the class_index.php fixed the problem.

 

This wasn't a module, this was a prestashop core modification.

 

 

Is the cache/class_index.php an index of all modifications? So if you delete it Prestashop regenerates it and finds the new extensions?

 

I am asking because after deleting it and reloading the page it created again with the working extended version.

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