Guest User

Untitled

a guest
Dec 9th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  3. <body>
  4. <referenceContainer name="alert.urls">
  5. <block class="MagentoCatalogBlockProductView" name="your-attribute" before="product.price.tier" template="catalog/product/view/custom-template.phtml" />
  6. </referenceContainer>
  7. </body>
  8. </page>
  9.  
  10. <?php $product = $block->getProduct();?>
  11.  
  12. <div class="">
  13. <?php echo $product->getData('my_attribute');?>
  14. </div>
Add Comment
Please, Sign In to add comment