Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
- <body>
- <referenceContainer name="alert.urls">
- <block class="MagentoCatalogBlockProductView" name="your-attribute" before="product.price.tier" template="catalog/product/view/custom-template.phtml" />
- </referenceContainer>
- </body>
- </page>
- <?php $product = $block->getProduct();?>
- <div class="">
- <?php echo $product->getData('my_attribute');?>
- </div>
Add Comment
Please, Sign In to add comment