Closed Triyugi closed 7 years ago
I see two formats of multiple image upload available. One is #206
$product = array( 'sku' => '1234567', '_media_image' => array('img1.jpg', 'img2.jpg', 'img3.jpg'), '_media_attribute_id' => array(77,77,77), '_media_is_disabled' => array(1,0,0), '_media_position' => array(1,2,3), '_media_lable' => array('Image 1', 'Image 2', 'Image 3'), 'image' => 'img1.jpg', 'small_image' => 'img2.jpg', 'thumbnail' => 'img3.jpg' );
And other is #208
array( array( 'sku' => 'TESTSKU', '_media_image' => 'http://www.example.com/img_01.jpg', '_media_lable' => 'Base Image Label', '_media_position' => 1, 'image' => 'http://www.example.com/img_01.jpg', 'small_image' => 'http://www.example.com/img_02.jpg', 'thumbnail' => 'http://www.example.com/img_03.jpg' ), array( 'sku' => null, '_media_image' => 'http://www.example.com/img_02.jpg', '_media_lable' => 'Small Image Label', '_media_is_disabled' => 1 ), array( 'sku' => null, '_media_image' => 'http://www.example.com/img_03.jpg', '_media_lable' => 'Thumbnail Label', '_media_is_disabled' => 1 ) )
Which one will work?
I see two formats of multiple image upload available. One is #206
And other is #208
Which one will work?