0

I want to get assigned products in a category with product positions in a category without using SOAP API.I don't want to use $proxy->call($sessionId, 'catalog_category.assignedProducts' .I am making a single file in magento folder for API.any help will be appreciated.

1 Answer 1

2

The call

Mage::getModel('catalog/category')->load($categoryId)->getProductsPosition()

will give you an array where the array keys are the product IDs and the values are the position values for those products within that category.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.