Jump to content

Product image upload


cizi

Recommended Posts

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

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.

  • Like 1
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...