djpaul Posted January 23, 2013 Share Posted January 23, 2013 Hello, 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? Thanks! Regards, Paul Link to comment Share on other sites More sharing options...
scorpionsworld Posted January 23, 2013 Share Posted January 23, 2013 ps_product_attachment links id_product with id_attachment Link to comment Share on other sites More sharing options...
djpaul Posted January 24, 2013 Author Share Posted January 24, 2013 Ok, thanks! But are the files encrypted or just the filename? 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