Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Vendor/Module/view/frontend/templates/catalog/product/view/options/type/text.phtml.
  2.  
  3. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  4. <body>
  5. <referenceContainer name="content">
  6. <referenceBlock name="product.info.options">
  7. <action method="setTemplate">
  8. <argument name="text" xsi:type="string">Vendor_Module::catalog/product/view/options/type/text.phtml</argument>
  9. </action>
  10. </referenceBlock>
  11. </referenceContainer>
  12. </body>
  13. </page>
  14.  
  15. <?php
  16. $_option = $block->getOption();
  17. $class = ($_option->getIsRequire()) ? ' required' : '';
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement