- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
REST API added images not showing on product pages
I've uploaded product images with the REST API.
They look fine on category / list pages, and in the admin interface.
However, on the product pages I just get the missing/placeholder image.
If I download the exact file from the admin interface, and the re-upload it(as a second product image) in the admin web ui, then it will show up on the product page.
Any ideas?
I guess I'm going to try closely comparing what they look like in REST get responses, but nothing obvious visible in admin web ui.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: REST API added images not showing on product pages
It was the 'disabled' media item attribute - which I see no ui for in the admin area.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: REST API added images not showing on product pages
Yes you need to pass false value in disabled media parameters , like 'disabled' => false
And in ui option is there when you click on product image from admin - Popup will open over there at the bottom there is checkbox option hide from product page which does the same.
Hope it helps to you !!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: REST API added images not showing on product pages
When I use 'disabled' => false still the image is set to "hide from the product page". Any solution please.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: REST API added images not showing on product pages
I am having the same problem. Disabled is marked 'false'. When I get media all the values are as i posted but does not show on product detail page. Thumbnail and small image shows up. This is the response of getMedia
<?xml version="1.0"?>
<response>
<item>
<id>36048</id>
<media_type>image</media_type>
<label>61005.JPG</label>
<position>1</position>
<disabled>false</disabled>
<types>
<item>image</item>
<item>small_image</item>
<item>thumbnail</item>
</types>
<file>/6/1/61005.JPG</file>
</item>
</response>