Jump to content

How does prestashop create attachments


Recommended Posts


I am developing a program that imports and updates products on my site. Everything is working great, all images are added and the products are working fine.

But now I want to add user manuals. These are also provided by my supplier. So, I was looking how prestashop attaches attachments to a product.

As far as I could see, the filename is encrypted with sha1(microtime()) and uploaded.

Then the encoded name, original name etc are inserted into the db.

(ps_attachment and ps_attachment_lang)

But I can't see any link between the product and the attachment.


Can you tell me which things I have to do to make this work?





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