I have override the catalog_product_view_type_downloadable.xml in my module as


But unable to call the changes done in xml file it only calls the default catalog_product_view.xml.

Can anyone help me to find reason for error in xml file.


<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

    <attribute name="class" value="custom-downloadable-product"/>

    <referenceContainer name="product.info.addtocart.additional" remove="true" />
    <referenceContainer name="product.price.final.copy" remove="true" />
    <referenceContainer name="product.info.price" remove="true" />
    <referenceBlock name="product.info.stock.sku" remove="true"/>
    <referenceBlock name="product.info.review" remove="true"/>
    <referenceBlock name="page.main.title" remove="true"/>
    <referenceBlock name="product.info.overview" remove="true" />
    <referenceBlock name="product.info.options.wrapper" remove="true" />
    <referenceBlock name="view.addto.compare" remove="true" />
    <referenceBlock name="product.info.mailto" remove="true" />
    <referenceBlock name="product.info.details" remove="true" />
    <referenceBlock name="product.info.options.wrapper.bottom" remove="true"/>
    <referenceBlock name="product.info.downloadable.samples" remove="true"/>

    <referenceBlock name="breadcrumbs" remove="true" />
    <referenceBlock name="product.info" remove="true" />


<module name="MyVendor_Downloadable" setup_version="1.0.8">
        <module name="Magento_Downloadable"/>
        <module name="Magento_Catalog"/>
  • please add your xml code – Rk Rathod Apr 9 '19 at 5:42
  • U can check now – Parthavi Apr 9 '19 at 5:52
  • did you run all required commands – fmsthird Apr 9 '19 at 6:35
  • @magefms yes i run all required commands – Parthavi Apr 9 '19 at 6:39
  • 1
    @magefms please check module sequence in code – Parthavi Apr 9 '19 at 7:00

Your Answer

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

Browse other questions tagged or ask your own question.