Skip to content

2.4.7-p1 Override product custom options

I am using a custom module which create some new features for magento 2 product custom options. It was working fine till version 2.4.6
Now I am testing version 2.4.7 and it seems that it cannot override magento native custom options.
Module is enabled in admin but when you edit a product you still see native custom options. It is like module not enabled in this section or in frontend

My module.xml file:

<?xml version="1.0"?>

<config>
    <module name="MyModule_DynamicProductOptions" setup_version="2.9.1">
        <sequence>
            <module name="Magento_Catalog" />
            <module name="Magento_Config" />
        </sequence>
    </module>
</config>

My di.xml file:

<preference for="MagentoCatalogBlockAdminhtmlProductEditTabOptions" type="MyModuleDynamicProductOptionsBlockAdminhtmlProductEditTabOptions" />
<preference for="MagentoCatalogModelProductTypeSimple" type="MyModuleDynamicProductOptionsModelRewriteProductTypeSimple" />
<preference for="MagentoCatalogModelProductTypeVirtual" type="MyModuleDynamicProductOptionsModelRewriteProductTypeVirtual" />
<preference for="MagentoBundleModelProductType" type="MyModuleDynamicProductOptionsModelRewriteProductTypeBundle" />

<preference for="MagentoCatalogModelProductOptionValidatorDefaultValidator" type="MyModuleDynamicProductOptionsModelRewriteOptionValidatorDefaultValidator" />
<preference for="MagentoCatalogModelProductOption" type="MyModuleDynamicProductOptionsModelRewriteOption" />
<preference for="MagentoCatalogModelProductOptionValue" type="MyModuleDynamicProductOptionsModelRewriteOptionValue" />
<preference for="MagentoCatalogModelProductOptionTypeDate" type="MyModuleDynamicProductOptionsModelRewriteOptionTypeDate" />
<preference for="MagentoCatalogModelProductOptionTypeDefaultType" type="MyModuleDynamicProductOptionsModelRewriteOptionTypeDefaultType" />
<preference for="MagentoCatalogModelProductOptionTypeFile" type="MyModuleDynamicProductOptionsModelRewriteOptionTypeFile" />
<preference for="MagentoCatalogModelProductOptionTypeSelect" type="MyModuleDynamicProductOptionsModelRewriteOptionTypeSelect" />
<preference for="MagentoCatalogModelProductOptionTypeText" type="MyModuleDynamicProductOptionsModelRewriteOptionTypeText" />

<preference for="MagentoConfigurableProductModelProductTypeConfigurable" type="MyModuleDynamicProductOptionsModelRewriteProductTypeConfigurable" />


<preference for="MagentoCatalogModelResourceModelOption" type="MyModuleDynamicProductOptionsModelRewriteResourceModelOption" />
<preference for="MagentoCatalogModelResourceModelOptionValue" type="MyModuleDynamicProductOptionsModelRewriteResourceModelOptionValue" />

<preference for="MagentoBundleModelProductPrice" type="MyModuleDynamicProductOptionsModelRewriteBundleProductPrice" />

<preference for="MagentoCatalogModelProductOptionRepository" type="ItorisDynamicProductOptionsModelRewriteProductOptionRepository" />

<type name="MagentoQuoteModelQuoteItem">
    <plugin name="dpo-quote-item-option-qty" type="MyModuleDynamicProductOptionsPluginQuoteItemOptionQty"/>
</type>
<type name="MagentoCheckoutBlockCartItemRenderer">
    <plugin name="dpo-cart-item-option-image" type="MyModuleDynamicProductOptionsPluginCartItemOptionImage"/>
</type>
<type name="MagentoSalesBlockOrderEmailItemsOrderDefaultOrder">
    <plugin name="dpo-email-order-item-option-image" type="MyModuleDynamicProductOptionsPluginEmailOrderItemOptionImage"/>
</type>

Is it something changed in Magento_Catalog or Magento_Config which breaks my module please?

Any help much appreciated because I am not the developer of that module and I dont know where to look