Guest User

ABS

a guest
Feb 1st, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 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.  
  49. <?php $_attribute = $_product->getResource()->getAttribute($_data['code']);
  50.  
  51. /* hide abc */
  52. if($_attribute->getFrontend()->getValue($_product)) == 'abc') {
  53. continue;
  54. }
  55. /* hide no abcd*/
  56. if (!is_null($_product->getData($_attribute->getAttributeCode())) && (trim((string)$_attribute->getFrontend()->getValue($_product)) != '')) { ?>
  57. <?php if ($_data['code'] == 'gendernew'): ?>
  58.  
  59. <tr><th colspan="3"><?php echo $this->__('') ?></th></tr>
  60. <th class = "tablehead" colspan="3" > GENERAL </th>
  61. <?php elseif ($_data['code'] == 'productweight'): ?>
  62.  
  63.  
  64.  
  65. <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>
  66. <?php endif; ?>
  67. <tr>
  68. <th class="label"><?php echo $this->escapeHtml($this->__($_data['label'])) ?></th>
  69. <td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
  70. </tr>
  71. <?php } ?>
  72. <?php endforeach; ?>
  73. </tbody>
  74. </table>
  75. </div>
  76.  
  77.  
  78. <script type="text/javascript">decorateTable('product-attribute-specs-table')</script>
  79. <?php endif;?>
  80.  
  81. <?php
  82.  
  83. $attribute_value = 'xyz ';
  84. if (strlen($attribute_value) > 0)
  85. {
  86. // code to display the value
  87. }
  88.  
  89. ?>
  90.  
  91. <style>
  92. .tablehead {
  93. background-color: #f2f2f2;
  94. font-weight: bold;
  95. text-transform: uppercase;
  96. font-weight:bold;
  97. color:black;
  98. }
  99.  
  100.  
  101.  
  102. </style>
Add Comment
Please, Sign In to add comment