How can I get Magento upsell products list if only have product id
Have to load Magento product object first and call “getUpSellProductCollection” method to retrieve Magento upsell products list
$product_id = 1; $pobject = Mage::getModel('catalog/product'); $product = $pobject->load($product_id); $upsell_product = $product->getUpSellProductCollection()->addAttributeToSort('position', Varien_Db_Select::SQL_ASC)->addStoreFilter();