Skip to content

How I can use mariadb’s `ON DUPLICATE KEY UPDATE` ability in magento upon mass insert of data?

Upon magento I am placing some values into the mariadb database via reading the csv: use PcmagasEmailsModelEmailFactory; use PcmagasEmailsModelEmail; use MagentoFrameworkFileCsv ; class MyController extends MagentoBackendAppAction { // This is populated via constructor private Csv $csv; private EmailFactory $factory; public… Read More »How I can use mariadb’s `ON DUPLICATE KEY UPDATE` ability in magento upon mass insert of data?

Why I am unable to submit the form in adminhtml using custom block in publichtml?

Instead of edit page I am using a simple file upload form using a block: upload_form.phtml <form method=”POST” action=”<?=$block->getUrl(“/test/uploadcsv”);?>” enctype=”multipart/form-data”> <input id=”emailcsv_uploadform” type=”file” name=”upload_csv”> <button type=”submit”>Upload File</button> </form> That is loaded from this template: <?xml version=”1.0″ ?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”>… Read More »Why I am unable to submit the form in adminhtml using custom block in publichtml?

Magento 2.4 order confirmation email

The order confirmation email was sent as shows in magento admin order page. Reference image. On the same order, it shows ‘Customer Not Notified’. Reference image. How to fix this & what’s the reason ?