Advertisement
vikasrao999

Untitled

Apr 22nd, 2014
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.90 KB | None | 0 0
  1. <?php
  2. /**
  3. * Magento
  4. *
  5. * NOTICE OF LICENSE
  6. *
  7. * This source file is subject to the Academic Free License (AFL 3.0)
  8. * that is bundled with this package in the file LICENSE_AFL.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://opensource.org/licenses/afl-3.0.php
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@magentocommerce.com so we can send you a copy immediately.
  14. *
  15. * DISCLAIMER
  16. *
  17. * Do not edit or add to this file if you wish to upgrade Magento to newer
  18. * versions in the future. If you wish to customize Magento for your
  19. * needs please refer to http://www.magentocommerce.com for more information.
  20. *
  21. * @category design
  22. * @package base_default
  23. * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  24. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  25. */
  26.  
  27. /**
  28. * Grouped product data template
  29. *
  30. * @see Mage_Catalog_Block_Product_View_Media
  31. * @see Mage_Catalog_Block_Product_View_Type_Grouped
  32. */
  33. ?>
  34. <?php $this->setPreconfiguredValue(); ?>
  35. <?php $_product = $this->getProduct(); ?>
  36. <?php $_associatedProducts = $this->getAssociatedProducts(); ?>
  37. <?php $_hasAssociatedProducts = count($_associatedProducts) > 0; ?>
  38. <?php if ($_product->isAvailable() && $_hasAssociatedProducts): ?>
  39. <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
  40. <?php else: ?>
  41. <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
  42. <?php endif; ?>
  43. <?php echo $this->getChildHtml('product_type_data_extra') ?>
  44.  
  45. <style type="text/css">
  46.  
  47.  
  48.  
  49. .Table
  50. {
  51. display: table;
  52. position:relative;
  53. margin-left:-285px;
  54. margin-top:10px;
  55. width:630px;
  56.  
  57.  
  58. }
  59.  
  60.  
  61. .Heading
  62. {
  63. display: table-row;
  64. font-weight: bold;
  65. font-size:14px;
  66. text-align: center;
  67. height:35px;
  68.  
  69.  
  70. }
  71. .Row
  72. {
  73. display: table-row;
  74.  
  75.  
  76. }
  77. .Cell
  78. {
  79. display: table-cell;
  80. border: solid;
  81. border-width: thin;
  82. padding-left: 5px;
  83. padding-right: 5px;
  84.  
  85. }
  86. .d { position:relative; margin-left:-275px; margin-top:10px; font-size:15px; }
  87. </style>
  88.  
  89.  
  90.  
  91.  
  92. <div class="Table">
  93. <col width="1300">
  94. <col width="80">
  95. <col width="130">
  96. <col width="80">
  97. <col width="130">
  98. <col width="80">
  99. <col width="130">
  100. <col width="80">
  101.  
  102.  
  103. <div class="Heading">
  104.  
  105.  
  106. <!-- new columns -->
  107.  
  108. <div class="Cell" col width="500"><?php echo $this->__('REF.NO.') ?></div>
  109.  
  110. <div class="Cell"><?php echo $this->__('CUTTER') ?></div>
  111. <div class="Cell"><?php echo $this->__('DIAMETER') ?></div>
  112. <div class="Cell"><?php echo $this->__('CUTTING') ?></div>
  113. <div class="Cell"><?php echo $this->__('LENGTH') ?></div>
  114.  
  115. <!-- new columns end-->
  116. <?php if ($this->getCanShowProductPrice($_product)): ?>
  117. <div class="Cell"><?php echo $this->__('Price') ?></div>
  118. <?php endif; ?>
  119. <?php if ($_product->isSaleable()): ?>
  120. <div class="Cell"><?php echo $this->__('Qty') ?></div>
  121. <?php endif; ?>
  122. <div class="Cell"><?php echo $this->__('BUY') ?></div>
  123.  
  124. </div>
  125.  
  126. <?php if ($_hasAssociatedProducts): ?>
  127. <?php foreach ($_associatedProducts as $_item): ?>
  128. <?php $_finalPriceInclTax = $this->helper('tax')->getPrice($_item, $_item->getFinalPrice(), true) ?>
  129. <div class="Row">
  130.  
  131. <!-- new columns -->
  132. <div class="Cell"><?php echo $this->htmlEscape($_item->getData('refno')) ?></div>
  133. <div class="Cell"><?php echo $this->htmlEscape($_item->getData('cutter')) ?></div>
  134. <div class="Cell"><?php echo $this->htmlEscape($_item->getData('diameter')) ?></div>
  135. <div class="Cell"><?php echo $this->htmlEscape($_item->getData('cutting')) ?></div>
  136. <div class="Cell"><?php echo $this->htmlEscape($_item->getData('length')) ?></div>
  137. <!-- new columns end-->
  138. <?php if ($this->getCanShowProductPrice($_product)): ?>
  139. <div class="Cell">
  140. <?php if ($this->getCanShowProductPrice($_item)): ?>
  141. <?php echo $this->getPriceHtml($_item, true) ?>
  142. <?php echo $this->getTierPriceHtml($_item) ?>
  143. <?php endif; ?>
  144. </div>
  145. <?php endif; ?>
  146. <?php if ($_product->isSaleable()): ?>
  147. <div class="Cell">
  148. <?php if ($_item->isSaleable()) : ?>
  149. <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" />
  150. <?php else: ?>
  151. <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
  152. <?php endif; ?>
  153. </div>
  154. <?php endif; ?>
  155. <div class="Cell"><button type="button" class="form-button" onclick="productAddToCartForm.submit()"><span><?php echo $this->__('BUY') ?></span></button></div>
  156. </div>
  157.  
  158. <?php endforeach; ?>
  159. <?php else: ?>
  160. <tr>
  161. <td colspan="<?php if ($_product->isSaleable()): ?>4<?php else : ?>3<?php endif; ?>"><?php echo $this->__('No options of this product are available.') ?></td>
  162. </tr>
  163. <?php endif; ?>
  164.  
  165. </div>
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173. <p class="d"> Prices are exclusive of GST. </p>
  174. <script type="text/javascript">decorateTable('super-product-table')</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement