Jump to content

Upload image function: how to upload a second manufacturer logo


andrewappleseed

Recommended Posts

Hi,
i want to have 2 pictures for the manufacturer: the logo and the "initial picture" (is a picture of one product).
My idea is to add a new "upload picture" in the AdminManufacturer as:

echo '


'.$this->l('Logo:').'

';
$this->displayImage($manufacturer->id, _PS_MANU_IMG_DIR_.$manufacturer->id.'_rename.jpg', 350);
echo '

<input type="file" name="logo" />

'.$this->l('Upload manufacturer logo from your computer').'




so the picture will call idmanufacturer_rename.jpg.

how the upload function works in prestashop? I can not find this function....
Link to comment
Share on other sites

  • 6 months later...

no answer?<br/><br/>Im trying to figured out how the "submitmanufacturer" works and how this upload the files into the folder.

 

 

I want the same thing..

have you found a solution for this?

 

I cannot understand where the action is going after clicking on save.

 

Admin codes are complex :(

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