Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. <block class="MagentoCatalogBlockProductViewDescription" name="product.info.details" template="Magento_Catalog::product/view/details.phtml" after="product.info.media">
  2. <block class="MagentoCatalogBlockProductViewDescription" name="product.info.description" as="description" template="Magento_Catalog::product/view/description.phtml" group="detailed_info">
  3. <arguments>
  4. <argument name="at_call" xsi:type="string">getDescription</argument>
  5. <argument name="at_code" xsi:type="string">description</argument>
  6. <argument name="css_class" xsi:type="string">description</argument>
  7. <argument name="at_label" xsi:type="string">none</argument>
  8. </arguments>
  9. </block>
  10. </block>
  11.  
  12.  
  13.  
  14. <block class="MagentoCatalogBlockProductView" name="product.info.details.models" template="Magento_Catalog::product/view/details.phtml">
  15. <block class="MagentoCatalogBlockProductViewAttributes" name="product.attributes" as="additional" template="Magento_Catalog::product/view/attributes.phtml" group="detailed_info">
  16. <arguments>
  17. <argument translate="true" name="title" xsi:type="string">Product Tab 2</argument>
  18. </arguments>
  19. </block>
  20. </block>
  21.  
  22.  
  23. <block class="MagentoCatalogBlockProductView" name="product.info.details.more" template="Magento_Catalog::product/view/details.phtml">
  24. <block class="MagentoCatalogBlockProductViewAttributes" name="more.product.info" as="information" template="Magento_Catalog::product/view/more_info.phtml" group="detailed_info" before="reviews.tab">
  25. <arguments>
  26. <argument name="title" translate="true" xsi:type="string">More Information</argument>
  27. </arguments>
  28. </block>
  29. </block>
  30.  
  31. <block class="MagentoReviewBlockProductReview" name="reviews.tab" as="reviews" template="Magento_Review::review.phtml" group="detailed_info">
  32. <block class="MagentoReviewBlockForm" name="product.review.form" as="review_form">
  33. <container name="product.review.form.fields.before" as="form_fields_before" label="Review Form Fields Before"/>
  34. </block>
  35. </block>
  36.  
  37. <?php
  38.  
  39.  
  40. // @codingStandardsIgnoreFile
  41.  
  42. ?>
  43. <?php
  44. $objectManager = MagentoFrameworkAppObjectManager::getInstance();
  45. $product = $objectManager->get('MagentoFrameworkRegistry')->registry('current_product');
  46. $description = $product->getResource()->getAttribute('description')->getFrontend()->getValue($product);
  47. ?>
  48.  
  49. <?php if ($detailedInfoGroup = $block->getGroupChildNames('detailed_info', 'getChildHtml')):?>
  50. <div class="product info detailed">
  51.  
  52. <?php $layout = $block->getLayout(); ?>
  53. <div class="product data items" data-mage-init='{"tabs":{"openedState":"active"}}'>
  54. <?php foreach ($detailedInfoGroup as $name):?>
  55. <?php
  56. $html = $layout->renderElement($name);
  57. if (!trim($html)) {
  58. continue;
  59. }
  60. $alias = $layout->getElementAlias($name);
  61. $label = $block->getChildData($alias, 'title');
  62. ?>
  63. <div class="data item content" id="<?= /* @escapeNotVerified */ $alias ?>" data-role="content">
  64. <?= /* @escapeNotVerified */ $html ?>
  65. </div>
  66. <?php endforeach;?>
  67. </div>
  68. </div>
  69. <?php endif; ?>
  70.  
  71. <?php
  72. $_helper = $this->helper('MagentoCatalogHelperOutput');
  73. $_product = $block->getProduct();
  74. ?>
  75.  
  76. <?php if ($_additional = $block->getAdditionalData()): ?>
  77. <div class="additional-attributes-wrapper table-wrapper">
  78. <h3>MoreInformation</h3>
  79. <table class="data table additional-attributes" id="product-attribute-specs-table">
  80. <tbody>
  81. <?php foreach ($_additional as $_data): ?>
  82. <?php
  83. //$label = $_data['label'];
  84. if($_data['label'] != "Description"){ ?>
  85. <tr>
  86. <th class="col label" scope="row"><?= $block->escapeHtml(__($_data['label'])) ?></th>
  87. <td class="col data" data-th="<?= $block->escapeHtml(__($_data['label'])) ?>"><?= /* @escapeNotVerified */ $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
  88. </tr>
  89. <?php } ?>
  90. <?php endforeach; ?>
  91. </tbody>
  92. </table>
  93. </div>
  94.  
  95. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement