Create Layout Product Magento 2

1

Hello everyone and thanks for your help. I'm starting with Magento 2 to see if anyone can help me.

In Magento 1 I worked the views of some products adding a custom layout in the design section of each product that needed it, added something like this:

<reference name="product.info">
    <action method="setTemplate"><template>catalog-view-for-phone/view-for-phone.phtml</template></action>
</reference>

I am trying to create the custom layout to improve the view of the attributes in certain Magento 2 products without success. Something like this:

<referenceBlock name="product.attributes">
    <action method="setTemplate">
        <argument name="template" xsi:type="string">Vendor_Modulename::product/view/view-for-phone.phtml</argument>
        </action>
</referenceBlock>

My absolute path to the .phtml file would be this:

/app/design/frontend/Infortis/ultimo/Magento_Catalog/templates/product/view/view-for-phone.phtml

I get the feeling that I'm putting the wrong route, can it be?.

I've tried different ways to put it and I'm starting to obfuscate because it does not seem to work in any way ... Does someone throw a cable?

    
asked by ramon lopez 11.06.2018 в 09:55
source

0 answers