Advertisement
Guest User

attributes

a guest
Sep 22nd, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 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) 2014 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. * Product additional attributes template
  29. *
  30. * @see Mage_Catalog_Block_Product_View_Attributes
  31. */
  32. ?>
  33. <?php
  34. $_helper = $this->helper('catalog/output');
  35. $_product = $this->getProduct()
  36. ?>
  37. <?php if($_additional = $this->getAdditionalData()): ?>
  38.  
  39. <div class="fp1"><?php $Pro_name =$_product->getName();?>
  40. <h2><?php echo $this->__('Specifications Of '."$Pro_name") ?></h2><br/><br/>
  41.  
  42.  
  43. <table class="data-table" id="product-attribute-specs-table">
  44. <col width="25%" />
  45. <col />
  46. <tbody>
  47. <?php foreach ($_additional as $_data): ?>
  48. <?php $_attribute = $_product->getResource()->getAttribute($_data['code']);
  49. if (!is_null($_product->getData($_attribute->getAttributeCode())) && ((string)$_attribute->getFrontend()->getValue($_product) != '')) { ?>
  50. <?php if ($_data['code'] == 'gendernew'): ?>
  51.  
  52. <tr><th colspan="3"><?php echo $this->__('') ?></th></tr>
  53. <th class = "tablehead" colspan="3" > GENERAL </th>
  54. <?php elseif ($_data['code'] == 'productweight'): ?>
  55.  
  56.  
  57.  
  58. <tr><th class = "tablehead" id="prod_dim" colspan="3"><p style="background: rgb(255, 255, 255) none repeat scroll 0% 0% ! important; color: rgb(255, 255, 255); width: 100%; padding-top: 10px; padding-right: 10px; padding-left: 10px; padding-bottom: 0px ! important;" class="Product_dim">Product Dimension</p><?php echo $this->__('PRODUCT DIMENSION') ?></th></tr>
  59. <?php endif; ?>
  60. <tr>
  61. <th class="label"><?php echo $this->escapeHtml($this->__($_data['label'])) ?></th>
  62. <td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
  63. </tr>
  64. <?php } ?>
  65. <?php endforeach; ?>
  66. </tbody>
  67. </table>
  68. </div>
  69.  
  70.  
  71. <script type="text/javascript">decorateTable('product-attribute-specs-table')</script>
  72. <?php endif;?>
  73.  
  74. <style>
  75. .tablehead {
  76. background-color: #f2f2f2;
  77. font-weight: bold;
  78. text-transform: uppercase;
  79. font-weight:bold;
  80. color:black;
  81. }
  82.  
  83.  
  84.  
  85. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement