cizi Posted February 27, 2015 Share Posted February 27, 2015 Hello guys, I am the newbie with PrestaShop. For my project I need to bend (customize) product images uploading. I quite happy how does it work right now but I need to do fork if the image has specific substring. I tried to find the php script which is handling this upload but without luck, because so many ajax for me. Do you have anyone any hint for me please? I will really appreciate. Thanks in advance. Jan Link to comment Share on other sites More sharing options...
cristic Posted February 27, 2015 Share Posted February 27, 2015 Rule of thumb in such cases is to use Inspect Element (Chrome) and under Network tab see what request is being made. Then check for the parameters being submitted. For image uploads, the controller in charge is AdminProductsController and the action is addProductImage. Being an ajax request, the function responsible for handling uploads is ajaxProcessaddProductImage. 1 Link to comment Share on other sites More sharing options...
cizi Posted March 1, 2015 Author Share Posted March 1, 2015 I follow your tutorial and everything seems to me clear but one thing not. How do you find out the name of the function (ajaxProcessaddProductImage)? 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