Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Magento
- *
- * NOTICE OF LICENSE
- *
- * This source file is subject to the Academic Free License (AFL 3.0)
- * that is bundled with this package in the file LICENSE_AFL.txt.
- * It is also available through the world-wide-web at this URL:
- * http://opensource.org/licenses/afl-3.0.php
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@magentocommerce.com so we can send you a copy immediately.
- *
- * DISCLAIMER
- *
- * Do not edit or add to this file if you wish to upgrade Magento to newer
- * versions in the future. If you wish to customize Magento for your
- * needs please refer to http://www.magentocommerce.com for more information.
- *
- * @category design
- * @package base_default
- * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
- */
- /**
- * Grouped product data template
- *
- * @see Mage_Catalog_Block_Product_View_Media
- * @see Mage_Catalog_Block_Product_View_Type_Grouped
- */
- ?>
- <?php $this->setPreconfiguredValue(); ?>
- <?php $_product = $this->getProduct(); ?>
- <?php $_associatedProducts = $this->getAssociatedProducts(); ?>
- <?php $_hasAssociatedProducts = count($_associatedProducts) > 0; ?>
- <?php if ($_product->isAvailable() && $_hasAssociatedProducts): ?>
- <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
- <?php else: ?>
- <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
- <?php endif; ?>
- <?php echo $this->getChildHtml('product_type_data_extra') ?>
- <style type="text/css">
- .Table
- {
- display: table;
- position:relative;
- margin-left:-285px;
- margin-top:10px;
- width:630px;
- }
- .Heading
- {
- display: table-row;
- font-weight: bold;
- font-size:14px;
- text-align: center;
- height:35px;
- }
- .Row
- {
- display: table-row;
- }
- .Cell
- {
- display: table-cell;
- border: solid;
- border-width: thin;
- padding-left: 5px;
- padding-right: 5px;
- }
- .d { position:relative; margin-left:-275px; margin-top:10px; font-size:15px; }
- </style>
- <div class="Table">
- <col width="1300">
- <col width="80">
- <col width="130">
- <col width="80">
- <col width="130">
- <col width="80">
- <col width="130">
- <col width="80">
- <div class="Heading">
- <!-- new columns -->
- <div class="Cell" col width="500"><?php echo $this->__('REF.NO.') ?></div>
- <div class="Cell"><?php echo $this->__('CUTTER') ?></div>
- <div class="Cell"><?php echo $this->__('DIAMETER') ?></div>
- <div class="Cell"><?php echo $this->__('CUTTING') ?></div>
- <div class="Cell"><?php echo $this->__('LENGTH') ?></div>
- <!-- new columns end-->
- <?php if ($this->getCanShowProductPrice($_product)): ?>
- <div class="Cell"><?php echo $this->__('Price') ?></div>
- <?php endif; ?>
- <?php if ($_product->isSaleable()): ?>
- <div class="Cell"><?php echo $this->__('Qty') ?></div>
- <?php endif; ?>
- <div class="Cell"><?php echo $this->__('BUY') ?></div>
- </div>
- <?php if ($_hasAssociatedProducts): ?>
- <?php foreach ($_associatedProducts as $_item): ?>
- <?php $_finalPriceInclTax = $this->helper('tax')->getPrice($_item, $_item->getFinalPrice(), true) ?>
- <div class="Row">
- <!-- new columns -->
- <div class="Cell"><?php echo $this->htmlEscape($_item->getData('refno')) ?></div>
- <div class="Cell"><?php echo $this->htmlEscape($_item->getData('cutter')) ?></div>
- <div class="Cell"><?php echo $this->htmlEscape($_item->getData('diameter')) ?></div>
- <div class="Cell"><?php echo $this->htmlEscape($_item->getData('cutting')) ?></div>
- <div class="Cell"><?php echo $this->htmlEscape($_item->getData('length')) ?></div>
- <!-- new columns end-->
- <?php if ($this->getCanShowProductPrice($_product)): ?>
- <div class="Cell">
- <?php if ($this->getCanShowProductPrice($_item)): ?>
- <?php echo $this->getPriceHtml($_item, true) ?>
- <?php echo $this->getTierPriceHtml($_item) ?>
- <?php endif; ?>
- </div>
- <?php endif; ?>
- <?php if ($_product->isSaleable()): ?>
- <div class="Cell">
- <?php if ($_item->isSaleable()) : ?>
- <input type="text" name="super_group[<?php echo $_item->getId() ?>]" maxlength="12" value="<?php echo $_item->getQty()*1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
- <?php else: ?>
- <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
- <?php endif; ?>
- </div>
- <?php endif; ?>
- <div class="Cell"><button type="button" class="form-button" onclick="productAddToCartForm.submit()"><span><?php echo $this->__('BUY') ?></span></button></div>
- </div>
- <?php endforeach; ?>
- <?php else: ?>
- <tr>
- <td colspan="<?php if ($_product->isSaleable()): ?>4<?php else : ?>3<?php endif; ?>"><?php echo $this->__('No options of this product are available.') ?></td>
- </tr>
- <?php endif; ?>
- </div>
- <p class="d"> Prices are exclusive of GST. </p>
- <script type="text/javascript">decorateTable('super-product-table')</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement