0

I am trying to display product options in cms page or popup. I am trying to find out if there any way to display it in a similar way like this:

{{block type="catalog/product_view" product_id="391" template="vendorname/modulename/product/1.phtml"}}

Then inside template file I would display options with this code:

<?php if ($_product->isSaleable() && $this->hasOptions()):?>
        <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
<?php endif;?>

This is also the reason why I would like to call product_view block, because I want to display product options with the above code. If I simply load product using Mage::getModel('catalog/product')->load($this->getProductId()); it won't work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.