|
I would like to have a specific product or products show up on an arbitrary page, such as the home page or an about us page. I need to have all the components show up also, such as the image and the option choices. I know the product id and can reference it by that. I have been able to create a product object with
$product_inst = Mage::getModel(’catalog/product’)->load(1234); // 1234 is the product id
however, I am unable to use that to display the data. With $product_inst, I can determine if the product has options with
if($product_inst->isSuperConfig()) {
// some code
}
However, in order to get the actual HTML that displays the options, I need to call
$this->getChildHtml(’super_config’);
where $this is an object of type Mage_Catalog_Block_Product_View. I do not know how to properly create this object so it is associated with the product in question. I have followed the inheritance tree and do not see how to set up the object properly. Is the Object Model for Magento documented somewhere?
Or, am I simply going about this the wrong way?
Thanks much, for what looks like a very impressive system.
|