1

Magento2: How to overwrite

/var/www/html/vendor/magento/module-configurable-product/view/frontend/templates/product/view/type/options/configurable.phtml
0

Just do following steps

1 . Add phtml file in your layout xml file

<action method="setTemplate">
     <argument name="template" xsi:type="string">Namespace_Modulename::configurable.phtml</argument>
</action>
  1. After that add configurable.phtml file in your module/view/frontend/templates/ folder

Note : Clear cache

For more information click here

2
  • nothing happens after following the steps above.
    – Tora
    Sep 25 '18 at 2:54
  • @Tora did you find any solution? Please share.
    – Fena shah
    Nov 6 '20 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.