Advertisement
Guest User

Untitled

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