- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to add image to category via SOAP API???
Unless i'm missing something, there doesnt appear to be a way of adding an image to a category using the SOAP API?
You can GET an image thats already attached to a category, but no way of attaching to a new category!!
Am I indeed missing something???
Mike
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to add image to category via SOAP API???
Hello,
Yes, you're right.
May be you can duplicate the method http://www.magentocommerce.com/api/soap/catalog/catalogProductAttributeMedia/catalog_product_attribu... and adapt it for categories.
Anthony
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to add image to category via SOAP API???
Hi,
And in version 2.2 of magento?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to add image to category via SOAP API???
In magento 2 it is not possible without extending core functionality.
you can add the category image save/get support REST API using extension attributes:
First declare extension attribute of string type of class \Magento\Catalog\Api\Data\CategoryInterface
afterSave plugin for \Magento\Catalog\Api\CategoryRepositoryInterface:: to save image
afterLoad plugin for \Magento\Catalog\Api\CategoryRepositoryInterface:: to load image
More details here