Skip to content

magento2.4

Auto Added by WPeMatico

Error: Cannot instantiate interface MagentoCatalogModelLayerContextInterface Magento Plugin

I’ve created a plugin in Magento 2.4.5 to overwrite MagentoCatalogSearchModelLayerFilterPrice ‘s method. <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <type name=”MagentoCatalogSearchModelLayerFilterPrice”> <plugin name=”magento_core_price” type=”MyVendorMyModuleModelMagentoPrice” sortOrder=”1″ /> </type> </config> After that I’m getting following error: Cannot instantiate interface MagentoCatalogModelLayerContextInterface I’ve already tried to… Read More »Error: Cannot instantiate interface MagentoCatalogModelLayerContextInterface Magento Plugin

Add field to Checkout

I created a custom field for customer: <?php declare(strict_types=1); namespace VendorMyModuleSetupPatchData; use MagentoCustomerModelCustomer; use MagentoCustomerSetupCustomerSetup; use MagentoCustomerSetupCustomerSetupFactory; use MagentoEavModelEntityAttributeSet; use MagentoEavModelEntityAttributeSetFactory; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupPatchDataPatchInterface; use MagentoFrameworkSetupPatchPatchRevertableInterface; class AddCustomAttributeCustomerAttribute implements DataPatchInterface, PatchRevertableInterface { /** * @var ModuleDataSetupInterface */ private $moduleDataSetup;… Read More »Add field to Checkout

Added custom field/attribute to magento 2 pageBuilder all content types but the attribute is not displaying on frontend html

I extended magento 2 pageBuilder media content types (image, banner, slide, slider etc..). So if I add any value in that custom field that will be displaying on frontend CMS (home) page correctly but I have the image/banner in category… Read More »Added custom field/attribute to magento 2 pageBuilder all content types but the attribute is not displaying on frontend html

Change url filter in Magento 2

Me again. When I filter in a category in Magento, it show a page like www.mymagento.com/mycategory?cat=3 Exist a way to replace the ID for the name? for example www.mymagento.com/mycategory?cat=mysubcategory or in a better way www.mymagento.com/mycategory/mysubcategory Thanks!