skip to Main Content

Magento 2 – Version 2.2 – Override Zend_Mail_Transport_Sendmail

Hallo everyone, since the release of Magento 2.2 the old override Zend_Mail_Transport_Sendmail does not work anymore. before, an rewrite in etc/di.xml and model/Transport.php worked. <preference for="MagentoFrameworkMailTransport" type="MyModulMyPluginModelTransport"/> and namespace MyModulMyPluginModel; class Transport extends Zend_Mail_Transport_Sendmail implements MagentoFrameworkMailTransportInterface { protected $_message; /**…

VIEW QUESTION

how to import a product programatically in magento 2

I tried importing a single product in magento 2..It failed.. I tried a script in magento 2 root directory and My code is <?php use MagentoFrameworkAppBootstrap; require __DIR__ . '/app/bootstrap.php'; $params = $_SERVER; $params[Bootstrap::PARAM_REQUIRE_MAINTENANCE] = true; // default false $params[Bootstrap::PARAM_REQUIRE_IS_INSTALLED]…

VIEW QUESTION

Magento 2 Attribute Not Show In Navigation

I have a problem when applying magento 2.1.9 to my project. My attribute is ab_size I have created that attribute with code blow. $categorySetup = $this->categorySetupFactory->create(['setup' => $setup]); $entityTypeId = $categorySetup->getEntityTypeId(MagentoCatalogModelProduct::ENTITY); foreach ($singleAttributeCodes as $key => $label) { $categorySetup->removeAttribute($entityTypeId, $key);…

VIEW QUESTION

Exception in Magento2 during MassDelete action

I have exception when I selected some records in grid and trying to delete them. Here is that exception: 1 exception(s): Exception #0 (InvalidArgumentException): AmiddioNewsModelNews does not extend MagentoFrameworkDataObject Magento version is 2.1.8 appcodeAmiddioNewsviewadminhtmlui_componentnews_grid_listing.xml <argument name="data" xsi:type="array"> <item name="config" xsi:type="array">…

VIEW QUESTION

Unable to override template file in Magento 2

I want to override magento's core order/info.phtml. I have copied the file from vendor/magento/module-sales/view/frontend/templates/order/info.phtml and place it here app/design/frontend/Magento/luma/Magento_Sales/templates/order/info.phtml But it is still using the old phtml file instead of new overrided file, please tell me where I did wrong?…

VIEW QUESTION
Back To Top
Search