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.

ZOE RULE
  • 141
  • 4
  • 14

1 Answers1

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.

Vinai
  • 14,014
  • 2
  • 42
  • 83