Advertisement
Guest User

grouped11

a guest
Sep 1st, 2014
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 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. .a { position:relative; margin-left:-125px; margin-top:345px; font-size:18px; }
  48. .b { position:relative; margin-left:-125px; margin-top:0px; font-size:18px; }
  49.  
  50.  
  51. .Table
  52. {
  53. display: table;
  54. position:relative;
  55. margin-left:-225px;
  56. margin-top:0px;
  57. width:100%;
  58.  
  59.  
  60.  
  61. }
  62.  
  63.  
  64. .Heading
  65. {
  66. display: table-row;
  67. font-weight: bold;
  68. font-size:14px;
  69. text-align: center;
  70. height:35px;
  71.  
  72.  
  73. }
  74. .Row
  75. {
  76. display: table-row;
  77.  
  78.  
  79. }
  80. .Cell
  81. {
  82. display: table-cell;
  83. border: solid;
  84. border-width: thin;
  85. padding-left: 5px;
  86. padding-right: 5px;
  87.  
  88. }
  89. .d { position:relative; margin-left:-275px; margin-top:10px; font-size:15px; }
  90. </style>
  91.  
  92.  
  93. <p class="a"><b> LONG REACH:</b></p> <br/>
  94. <p class="b"><b> 3/8" (9.5mm) Diameterx 1 1/2" (37mm) LongShank</b></p> <br/>
  95.  
  96.  
  97.  
  98. <div class="Table">
  99. <col width="1300">
  100. <col width="80">
  101. <col width="130">
  102. <col width="80">
  103. <col width="130">
  104. <col width="80">
  105. <col width="130">
  106. <col width="80">
  107.  
  108.  
  109. <div class="Heading">
  110.  
  111.  
  112. <!-- new columns -->
  113.  
  114.  
  115.  
  116. <div class="Cell"><?php echo $this->__('LENGTH') ?></div>
  117. <div class="Cell"><?php echo $this->__('HEIGHT') ?></div>
  118.  
  119. <!-- new columns end-->
  120. <?php if ($this->getCanShowProductPrice($_product)): ?>
  121. <div class="Cell"><?php echo $this->__('Price') ?></div>
  122. <?php endif; ?>
  123. <?php if ($_product->isSaleable()): ?>
  124. <div class="Cell" style="width:10px;"><?php echo $this->__('Qty') ?></div>
  125. <?php endif; ?>
  126. <div class="Cell"><?php echo $this->__('BUY') ?></div>
  127.  
  128. </div>
  129.  
  130. <?php if ($_hasAssociatedProducts): ?>
  131. <?php foreach ($_associatedProducts as $_item): ?>
  132. <?php $_finalPriceInclTax = $this->helper('tax')->getPrice($_item, $_item->getFinalPrice(), true) ?>
  133. <div class="Row">
  134.  
  135. <!-- new columns -->
  136. <div class="Cell"><?php echo $this->htmlEscape($_item->getData('length')) ?></div>
  137. <div class="Cell"><?php echo $this->htmlEscape($_item->getData('height')) ?></div>
  138.  
  139. <!-- new columns end-->
  140. <?php if ($this->getCanShowProductPrice($_product)): ?>
  141. <div class="Cell">
  142. <?php if ($this->getCanShowProductPrice($_item)): ?>
  143. <?php echo $this->getPriceHtml($_item, true) ?>
  144. <?php echo $this->getTierPriceHtml($_item) ?>
  145. <?php endif; ?>
  146. </div>
  147. <?php endif; ?>
  148. <?php if ($_product->isSaleable()): ?>
  149. <div class="Cell">
  150. <?php if ($_item->isSaleable()) : ?>
  151. <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" />
  152. <?php else: ?>
  153. <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
  154. <?php endif; ?>
  155. </div>
  156. <?php endif; ?>
  157. <div class="Cell"> <button type="button" class="form-button" onclick="productAddToCartForm.submit()" style="font-size:18px; background-color:#7FFF00;"><span><?php echo $this->__('BUY') ?></span></button>
  158. </div>
  159. </div>
  160.  
  161. <?php endforeach; ?>
  162. <?php else: ?>
  163. <tr>
  164. <td colspan="<?php if ($_product->isSaleable()): ?>4<?php else : ?>3<?php endif; ?>"><?php echo $this->__('No options of this product are available.') ?></td>
  165. </tr>
  166. <?php endif; ?>
  167.  
  168. </div>
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177. <script type="text/javascript">decorateTable('super-product-table')</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement