Search code examples
magentoconfigurable

get attribute text on simple product and hide on configurable in product view magento


How can i get the Attribute Text just on simple products? and hide on configurable? in Product View Magento.

Thanks


Solution

  • Why not just do an exception in view.phtml based on type id?

    <?php if($_product->getTypeId() == "configurable"){ ?>
                <div class="product-view"> ... </div>
    
            <?php  } else { ?> 
                <div class="product-view"> ... </div>
            <?php  } ?>