php - Getting list of products by category in Magento using SOAP-based API -
i need products belonging specific category in magento using web services api. tried method:
$product_filter = array( 'category_ids' => array('eq' => '41') ); $product_templates = $magento_client -> call($magento_session, 'product.list'); but returns error. can assume it's because category_ids array, won't ever equal 1 specific value.
i did research , found method called category.assignedproducts , tried:
$product_templates = $magento_client -> call($magento_session, 'catalog_category.assignedproducts', array('41')); but returned 'access denied' error. went , looked @ sandbox of magneto , saw 'assigned products' has 3 options: 'remove', 'update', 'assign', , know admin system i'm linking has set access 'read-only'. i'm guessing we'd have check off 'assign' in list, give me more access want give.
i retrieve of data , filtering on end, wanted check if knew of better way.
thanks.
assignedproducts sounds need shouldn't need passing along array integer value , store id or code.
see arguments required: http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_category#catalog_category.assignedproducts
Comments
Post a Comment