Advertisement
Guest User

ghf

a guest
Sep 22nd, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 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 if ((string)$_data['value'] != ' ' and $_data['value'] != 'N/A'): ?>
  49. <?php $_attribute = $_product->getResource()->getAttribute($_data['code']);
  50. if (!is_null($_product->getData($_attribute->getAttributeCode())) && ((string)$_attribute->getFrontend()->getValue($_product) != '')) { ?>
  51. <?php if ($_data['code'] == 'gendernew'): ?>
  52.  
  53. <tr><th colspan="3"><?php echo $this->__('') ?></th></tr>
  54. <th class = "tablehead" colspan="3" > GENERAL </th>
  55. <?php elseif ($_data['code'] == 'productweight'): ?>
  56.  
  57.  
  58.  
  59. <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>
  60. <?php endif; ?>
  61. <tr>
  62. <th class="label"><?php echo $this->escapeHtml($this->__($_data['label'])) ?></th>
  63. <td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
  64. </tr>
  65. <?php } ?>
  66. <?php endforeach; ?>
  67. </tbody>
  68. </table>
  69. </div>
  70.  
  71.  
  72. <script type="text/javascript">decorateTable('product-attribute-specs-table')</script>
  73. <?php endif;?>
  74.  
  75. <style>
  76. .tablehead {
  77. background-color: #f2f2f2;
  78. font-weight: bold;
  79. text-transform: uppercase;
  80. font-weight:bold;
  81. color:black;
  82. }
  83.  
  84.  
  85.  
  86. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement