Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.18 KB | None | 0 0
  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4. <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  5. -->
  6. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  7. <body>
  8.  
  9. <referenceContainer name="content" >
  10. <block class="InfortisBaseBlockProductView" name="product-view-wrapper" template="product/view.phtml" before="-">
  11. <container name="container_product_image_1" label="Product View, Image Column" />
  12. <container name="container_product_primary_1" label="Product View, Primary Column, Container 1" />
  13. <container name="container_product_primary_2" label="Product View, Primary Column, Container 2" />
  14. <container name="container_product_secondary_1" label="Product View, Secondary Column, Container 1" />
  15. <container name="container_product_secondary_2" label="Product View, Secondary Column, Container 2" />
  16. <container name="container_product_lower_primary_1" label="Product View, Lower Primary Column, Container 1" />
  17. <container name="container_product_lower_primary_2" label="Product View, Lower Primary Column, Container 2" />
  18. <container name="container_product_lower_secondary_1" label="Product View, Lower Secondary Column, Container 1" />
  19. <container name="container_product_lower_secondary_2" label="Product View, Lower Secondary Column, Container 2" />
  20.  
  21. <!-- Static blocks -->
  22. <block class="MagentoCmsBlockBlock" name="block_product_secondary_bottom">
  23. <arguments>
  24. <argument name="block_id" xsi:type="string">block_product_secondary_bottom</argument>
  25. </arguments>
  26. </block>
  27. </block>
  28. </referenceContainer>
  29.  
  30. <!-- Reset attributes of main containers -->
  31. <referenceContainer name="product.info.main" htmlTag="" htmlClass="" before="-" />
  32. <referenceContainer name="product.info.media" htmlTag="" htmlClass="" after="product.info.main" />
  33.  
  34. <!-- Insert product view blocks into the new product view wrapper -->
  35. <move element="product.info.main" destination="product-view-wrapper" />
  36. <move element="product.info.media" destination="product-view-wrapper" />
  37. <move element="bundle.options.container" destination="product-view-wrapper" />
  38. <move element="product.info.details" destination="product-view-wrapper" />
  39. <move element="catalog.product.related" destination="product-view-wrapper" />
  40. <move element="product.info.upsell" destination="product-view-wrapper" />
  41.  
  42. <!-- Move some blocks to new positions -->
  43. <!-- <move element="product.info.stock.sku" destination="product.info.price" after="product.price.final" /> -->
  44. <!-- <move element="product.info.social" destination="product.info.main" after="-" /> -->
  45. <move element="product.info.overview" destination="product.info.main" before="product.info.price" />
  46. <move element="container_product_primary_1" destination="product.info.main" after="page.main.title" />
  47. <move element="container_product_primary_2" destination="product.info.main" after="-" />
  48.  
  49. <!-- Move some blocks outside the "product.info.main" to manipulate their position inside template file -->
  50. <move element="page.main.title" destination="product-view-wrapper" />
  51. <move element="product.info.review" destination="product-view-wrapper" />
  52.  
  53. <!-- Product collateral data (tabs) -->
  54. <referenceBlock name="product.info.details" template="Infortis_Base::product/view/details.phtml" >
  55. <arguments>
  56. <argument name="show_tabs" xsi:type="helper" helper="InfortisBaseHelperTemplateCatalogProductView::showTabs" />
  57. </arguments>
  58. <!-- Custom static blocks as tabs -->
  59. <block class="MagentoCmsBlockBlock" name="product_cms_block1" group="detailed_info">
  60. <arguments>
  61. <argument name="block_id" xsi:type="string">block_product_tab1</argument>
  62. <argument name="title" xsi:type="helper" helper="InfortisBaseHelperTemplateCatalogProductView::getStaticBlockTitle">
  63. <param name="id">block_product_tab1</param>
  64. </argument>
  65. </arguments>
  66. </block>
  67. <block class="MagentoCmsBlockBlock" name="product_cms_block2" group="detailed_info">
  68. <arguments>
  69. <argument name="block_id" xsi:type="string">block_product_tab2</argument>
  70. <argument name="title" xsi:type="helper" helper="InfortisBaseHelperTemplateCatalogProductView::getStaticBlockTitle">
  71. <param name="id">block_product_tab2</param>
  72. </argument>
  73. </arguments>
  74. </block>
  75. </referenceBlock>
  76.  
  77. <referenceBlock name="catalog.product.related">
  78. <action method="setTemplate">
  79. <argument name="template" xsi:type="helper" helper="InfortisBaseHelperTemplateCatalogProductView::getRelatedProductsTemplate" />
  80. </action>
  81. </referenceBlock>
  82.  
  83. <referenceBlock name="product.info.upsell" >
  84. <action method="setTemplate">
  85. <argument name="template" xsi:type="helper" helper="InfortisBaseHelperTemplateCatalogProductView::getUpsellProductsTemplate" />
  86. <!-- TODO: -->
  87. <argument name="is_responsive" xsi:type="string">false</argument>
  88. <argument name="show_items" xsi:type="string">3</argument>
  89. </action>
  90. </referenceBlock>
  91.  
  92. <referenceBlock name="checkout.cart.crosssell">
  93. <action method="setTemplate">
  94. <argument name="template" xsi:type="string">Infortis_Base::product/list/slider.phtml</argument>
  95. </action>
  96. </referenceBlock>
  97.  
  98. <move element="reviews.tab" destination="main.content" after="-"/>
  99. <move element="catalog.product.related" destination="product.info.main" before="-"/>
  100. </body>
  101. </page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement