- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hola amigos, tal y como dice el título ando trasteando Magento2 en un entorno de pruebas y estoy algo ofuscado.
Quiero aplicar un diseño concreto en el bloque de atributos para algunos productos.
La actualización XML que estoy utilizando en el diseño de producto la ignora por completo, estoy poniendo esto en el "Layout Update XML" del producto:
<body> <block class="Magento\Catalog\Block\Product\View\Description" name="details" template="Magento_Catalog::product/view/details.phtml" group="detailed_info" before="-"> <arguments> <argument name="at_call" xsi:type="string">getDetails</argument> <argument name="at_code" xsi:type="string">details</argument> <argument name="css_class" xsi:type="string">details</argument> <argument name="title" translate="true" xsi:type="string">Product Details</argument> </arguments> </block> </body>
No llevo mucho con Magento2, me vendría bien algo de ayuda.
Saludos y muchas gracias
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi friend, I solved it.
Finally I was able to do the block update directly in the product layout update.
So now, I can see the products with different styles for the attributes depending of the product layout update.
Thank you so much.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2: Layout personalizado Atributos en productos
You can only set below xml tag for Design Layout in Admin panel,
referenceContainer, container, update, moveYou have given Block tag and arguments tag which are not allowed to system admin.
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi friend, I solved it.
Finally I was able to do the block update directly in the product layout update.
So now, I can see the products with different styles for the attributes depending of the product layout update.
Thank you so much.