Advertisement
Guest User

gd

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