<?php $attribute_value = $_product->getResource()->getAttribute('in_the_box')->getFrontend()->getValue($_product); $count = count(explode("\n", nl2br($attribute_value))); ?> <div class="product-collateral"> <div id="custom-show-hide-example" class="accordian"> <?php if ($_product->getIn_the_box()): ?> <h3 class="open">what's in the box</h3> <div class="acc_box clearfix" style="display: block"> <?php $attrArray = explode("\n",$attribute_value) ; $i = 0; ?> <div class="acc_in"> <?php foreach($attrArray as $attr) {?> <p class="what-in-box"><?php echo $attr;?></p> <?php $i++; if($i>3) { $i=0; ?> </div><div class="acc_in"> <?php } }?> </div> </div> <?php endif;?>
Categories: Magento
0 Comments