Advertisement
andhiirawan

Magento : Product Detail Page : Catalog Product-Configurable

Oct 1st, 2015 (edited)
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.17 KB | None | 0 0
  1. <!--app\design\frontend\theme\default\template\catalog\product\view\type\options\configurable.phtml-->
  2.  
  3. <?php
  4. $_product    = $this->getProduct();
  5. $_attributes = Mage::helper('core')->decorateArray($this->getAllowAttributes());
  6. ?>
  7. <?php if ($_product->isSaleable() && count($_attributes)):?>
  8.     <dl>
  9.     <?php foreach($_attributes as $_attribute): ?>
  10.         <dt><label class="required"><?php echo $_attribute->getLabel() ?></label></dt>
  11.         <span class="product-span">:</span>
  12.         <dd<?php if ($_attribute->decoratedIsLast){?> class="last"<?php }?>>            
  13.             <div class="input-box">
  14.                 <select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]" id="attribute<?php echo $_attribute->getAttributeId() ?>" class="required-entry super-attribute-select">
  15.                     <option><?php echo $this->__('Choose an Option...') ?></option>
  16.                   </select>
  17.               </div>
  18.         </dd>
  19.     <?php endforeach; ?>
  20.     </dl>
  21.     <script type="text/javascript">
  22.         var spConfig;
  23.         setTimeout(function(){spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>);}, 1000);
  24.     </script>
  25. <?php endif;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement