Forum

Thread tagged as: Runway, Shop

Code for product image upload

Is there any documentation on uploading a product image with code? Along with thumbnail generation and all that of course. Would be really helpful.

Lexi McGee

Lexi McGee 3 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Does that works for products as well? am talking about the specific part where you upload a product image through the perch shop product ''panel''. Specifically how it links the assetid to the product.

We are using this https://docs.grabaperch.com/api/import/shop/products/ however when we put assetid and the asset ID we can't find the image anywhere in the product dynamic fields

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show us the code you're using?

This seems to be missing from the documentation.

‘image’             => true,
‘image_assetID’     => 1,
Drew McLellan

Drew McLellan 2638 points
Perch Support