1

I'm looking for a method in the API SOAP (v2) to set an uploaded image like 'Base Image', 'Small Image' or 'Thumbnail', but I can't find one.

I've checked the methods in http://www.magentocommerce.com/api/soap/catalog/catalogProductAttributeMedia/productImages.html but none of them looks like doing what I want.

Suggestions?

3

You can set the base image, small image and thumbnail image like this

$proxy->call($sessionId, 'product_media.update', array(
    'Sku',
    $imageFilename,
    array('position' => 2, 'types' => array('image', 'small_image', thumbnail) /* Lets do it main image for product */)
));

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.