Skip to content

Instantly share code, notes, and snippets.

@wesleyalmd
Created September 3, 2019 15:43
Show Gist options
  • Save wesleyalmd/9b2a5493d3170bee311ffa8b4e96d750 to your computer and use it in GitHub Desktop.
Save wesleyalmd/9b2a5493d3170bee311ffa8b4e96d750 to your computer and use it in GitHub Desktop.
Laureate - Product Layout XML
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="product.info.stock.sku" remove="true" />
<referenceContainer name="product.info.social" remove="true" />
<referenceContainer name="product.info.media" remove="true" />
<referenceBlock name="product.info.overview" remove="true" />
<referenceBlock name="product.info.review" remove="true" />
<referenceBlock name="reviews.tab" remove="true" />
<referenceBlock name="giftregistry.product.view.customize.button" remove="true" />
<referenceBlock name="product.info.details" remove="true" />
<move element="product.info.main" destination="content" before="-" />
<move element="columns" destination="page.wrapper" after="page.top" />
<move element="product.info.price" destination="product.info.wrapper" before="-"/>
<move element="product.info" destination="product.info.wrapper" after="product.info.postcode"/>
<move element="product.info.description" destination="main.content" after="product.info.main" />
<referenceBlock name="page.main.title">
<block class="Magento\Catalog\Block\Product\View\Attributes" name="page.main.title.attribute" template="Magento_Theme::html/title/attribute.phtml" />
</referenceBlock>
<referenceContainer name="page.top">
<container name="product.info.video" htmlTag="div" htmlClass="product-info-video" after="breadcrumbs">
<block class="Magento\Catalog\Block\Product\View\Gallery" name="product.info.video.image" template="Magento_Catalog::product/view/video.phtml">
<block name="product.info.video.close" template="Magento_Theme::sprite.phtml">
<arguments>
<argument name="id" xsi:type="string">close</argument>
</arguments>
</block>
</block>
<block class="Magento\Catalog\Block\Product\View\Attributes" name="product.info.video.wrapper" template="Magento_Catalog::product/view/video-wrapper.phtml">
<block name="product.info.video.icon" template="Magento_Theme::sprite.phtml">
<arguments>
<argument name="id" xsi:type="string">play</argument>
</arguments>
</block>
</block>
</container>
</referenceContainer>
<referenceContainer name="product.info.price">
<block class="Magento\Catalog\Block\Product\View\Attributes" name="product.info.price.premium" template="Magento_Catalog::product/premium.phtml">
<arguments>
<argument name="view_model" xsi:type="object">Laureate\Catalog\ViewModel\Product\CustomAttribute</argument>
</arguments>
</block>
</referenceContainer>
<referenceContainer name="product.info.main">
<container name="product.info.wrapper" htmlClass="product-info-wrapper" htmlTag="div" after="-">
<block class="Magento\Catalog\Block\Product\View\Attributes" name="product.info.postcode" template="Magento_Catalog::product/postcode.phtml" after="-">
<block name="product.info.postcode.icon" template="Magento_Theme::sprite.phtml">
<arguments>
<argument name="id" xsi:type="string">info</argument>
</arguments>
</block>
</block>
</container>
<block name="product.info.sidebar" template="Magento_Catalog::product/view/campus-sidebar.phtml" after="-">
<block name="product.info.sidebar.icon" template="Magento_Theme::sprite.phtml">
<arguments>
<argument name="id" xsi:type="string">back</argument>
</arguments>
</block>
</block>
</referenceContainer>
<referenceContainer name="product.info.details.wrapper">
<block class="Magento\Catalog\Block\Product\View\Description" name="product.info.course.details.2" template="Magento_Catalog::product/view/attribute.phtml">
<arguments>
<argument name="at_call" xsi:type="string">getCourseDetails</argument>
<argument name="at_code" xsi:type="string">course_details</argument>
<argument name="css_class" xsi:type="string">course-details</argument>
<argument name="at_label" xsi:type="string">none</argument>
<argument name="title" translate="true" xsi:type="string">Course Details</argument>
<argument name="sort_order" xsi:type="string">10</argument>
</arguments>
</block>
</referenceContainer>
</body>
</page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment