- Introduction
-
Catalog
-
Catalog Category
- catalog_category.assignedProducts
- catalog_category.assignProduct
- catalog_category.create
- catalog_category.currentStore
- catalog_category.delete
- catalog_category.info
- catalog_category.level
- catalog_category.move
- catalog_category.removeProduct
- catalog_category.tree
- catalog_category.update
- catalog_category.updateProduct
- Catalog Category Attributes
- Catalog Product
- Catalog Product Attribute
-
Catalog Product Attribute
Media - Catalog Product Attribute Set
-
Catalog Product Custom
Option - Catalog Product Custom Option Value
- Catalog Product Downloadable Link
- Catalog Product Link
- Catalog Product Tag
- Catalog Product Tier Price
- Catalog Product Types
-
Catalog Category
- Catalog Inventory
- Checkout
- Create Your Own API
- Customer
- Directory
- Sales
- Enterprise Customer Balance
- Enterprise Gift Card
- Enterprise Gift Message
- Miscellaneous
- WS-I Compliance
Module: Mage_Catalog
The Mage_Catalog module allows you to manage categories and products.
Category Attributes
Allows you to retrieve the list of category attributes and options.
Resource Name: catalog_category_attribute
Aliases:
- category_attribute
Methods:
- catalog_category_attribute.currentStore - Set/Get the current store view
- catalog_category_attribute.list - Retrieve the category attributes
- catalog_category_attribute.options - Retrieve the attribute options
Faults
Fault Code | Fault Message |
---|---|
100 | Requested store view not found. |
101 | Requested attribute not found. |
Examples
Example 1. Retrieving attributes and options
$proxy = new SoapClient('http://magentohost/api/soap/?wsdl'); $sessionId = $proxy->login('apiUser', 'apiKey'); $attributes = $proxy->call($sessionId, 'category_attribute.list'); foreach ($attributes as &$attribute) { if (isset($attribute['type']) && ($attribute['type'] == 'select' || $attribute['type'] == 'multiselect')) { $attribute['options'] = $proxy->call($sessionId, 'category_attribute.options', $attribute['code']); } } var_dump($attributes);