Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Thank you for your answer but I do not manage to make it works. Please see my update Commented Jul 21, 2017 at 10:10
  • why do you use <referenceBlock name="text">? Commented Jul 21, 2017 at 14:54
  • If i understand correctly, the <action method="setTemplate">..</action> chnage the template of the block selected by <referenceBlock>. I think the problem is coming from the fact that custom options block do not have a "name" attribute but a "as" attribute... Commented Jul 22, 2017 at 5:09
  • i don't know what are you doing, my code works correctly and override magento template with custom template. "as" property is for magento1 i never see it in magento2. Commented Jul 23, 2017 at 20:23
  • Yes, your code work perfectly except for custom options templates... "as" is used in magento2 (cf vendor/magento/module-catalog/view/frontend/layout/catalog_product_view.xml line70) Commented Jul 25, 2017 at 6:57