Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--app\design\frontend\theme\default\template\catalog\product\view\type\options\configurable.phtml-->
- <?php
- $_product = $this->getProduct();
- $_attributes = Mage::helper('core')->decorateArray($this->getAllowAttributes());
- ?>
- <?php if ($_product->isSaleable() && count($_attributes)):?>
- <dl>
- <?php foreach($_attributes as $_attribute): ?>
- <dt><label class="required"><?php echo $_attribute->getLabel() ?></label></dt>
- <span class="product-span">:</span>
- <dd<?php if ($_attribute->decoratedIsLast){?> class="last"<?php }?>>
- <div class="input-box">
- <select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]" id="attribute<?php echo $_attribute->getAttributeId() ?>" class="required-entry super-attribute-select">
- <option><?php echo $this->__('Choose an Option...') ?></option>
- </select>
- </div>
- </dd>
- <?php endforeach; ?>
- </dl>
- <script type="text/javascript">
- var spConfig;
- setTimeout(function(){spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>);}, 1000);
- </script>
- <?php endif;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement