a1000car Posted June 19, 2014 Share Posted June 19, 2014 (edited) Hello! I'm in need of assistance regarding creating products via webservice. I'm using the PSWebServiceLibrary.php to connect to my shop and create / update products. So far i'm able to use the API to handle normal products, but now i need to create virtual products. The goal is to be able to create virtual products with an associated file via webservice. One of my client requirements is to have a simple interface to upload images that will be converted to virtual products, using the same image as the associated file of the virtual product and as the product image. I've already checked all fields available in the API and cannot find anywhere where to edit / add the associated file! Can someone please give me a help? This is crucial for my client's shop. If not possible, is there any modules for mass upload of images and turn them into virtual products with associated files? I'm desperate... your help is very important to me! Edited June 19, 2014 by a1000car (see edit history) Link to comment Share on other sites More sharing options...
xabikip Posted February 9, 2015 Share Posted February 9, 2015 (edited) Hello, I have the same need. Could you do? Edited February 9, 2015 by xabikip (see edit history) Link to comment Share on other sites More sharing options...
namnoops Posted April 5, 2016 Share Posted April 5, 2016 I also have the same requirement. Can anyone help? Link to comment Share on other sites More sharing options...
xabikip Posted April 6, 2016 Share Posted April 6, 2016 Maybe this can help you. https://github.com/xabikip/PrestaShopWebService/blob/master/examples/createProduct.php Link to comment Share on other sites More sharing options...
namnoops Posted April 6, 2016 Share Posted April 6, 2016 Thanks! Seems like that's a way of adding regular products. I was referring to adding virtual products. The difference is that I need to know what to do with the file (full resolution image, pdf, music file, etc) that's attached to the product and sent to the buyer upon purchase. Link to comment Share on other sites More sharing options...
xabikip Posted April 6, 2016 Share Posted April 6, 2016 No, in this case the product is a virtual product. You can see it in this line: https://github.com/xabikip/PrestaShopWebService/blob/master/examples/createProduct.php#L30 Link to comment Share on other sites More sharing options...
namnoops Posted April 8, 2016 Share Posted April 8, 2016 Thanks! I noticed they set virtual to true, but what I fail to understand is where the link to the product is defined. After a bit of reading, do I understand correctly that as far as the product properties one only has to define 'virtual = true' and then place the actual virtual product in the /download directory and give it some convention MD5 name? Thanks again! 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