magento productType == "configurable" view.phtml


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. $product = Mage::getModel('catalog/product');
  4.  
  5. $productType = $product->getTypeId();
  6.  
  7. if($productType == "configurable") {
  8. echo $this->getLayout()->getBlock('product.info.configurable')->toHtml();
  9. } ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.