Tuesday, 26 April 2016

how to find the position of a product in a magento category

$productPositions = Mage::getResourceModel('catalog/category')->getProductsPosition($category);
                    $productPositions[$_product->getId()];

No comments:

Post a Comment