$product_sku = $mpn; $obj = Mage::getModel('catalog/product'); $product_id = $obj->getIdBySku( $product_sku ); $_product = $obj->load($product_id); // this is the problematic line
The above code is in a ajax controller. I am attempting to pull in the short description using the. The sku is fine and the product id is fine. The problem occurs when we get to $obj->load($product_id). The page load times out when I include this line though I have read numerous tutorials which instruct you to use this same sequence of methods. I thought that it might be because some of the products don't have a short description?? The next stage would be to use $_product->getShortDescription() but I can't get any further. I have tried everything I can think of. Has anybody got any ideas on why this is wrong?