Skip to content

magento man

Prevent invoice email notification after invoice creation in Magento 2

I have used below event to stop Invoice email notification that is triggered after the invoice creation. Vendor/Module/etc/events.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Event/etc/events.xsd”> <event name=”sales_order_invoice_save_after”> <observer name=”stop_invoice_email_sending” instance=”VendorModuleObserverStopInvoiceEmail” /> </event> </config> Vendor/Module/Observer/StopInvoiceEmail.php <?php namespace MindtreeBilldeskObserver; use MagentoFrameworkEventObserver; use MagentoFrameworkEventObserverInterface; use… Read More »Prevent invoice email notification after invoice creation in Magento 2

Update selector field in Magento 2

I have a form with the following 2 fields in an xml file: Regions: <field formElement=”select” name=”regions” > <argument name=”data” xsi:type=”array”> <item name=”config” xsi:type=”array”> <item name=”dataType” xsi:type=”string”>text</item> <item name=”label” xsi:type=”string” translate=”true”>Regions</item> <item name=”formElement” xsi:type=”string”>select</item> <item name=”component” xsi:type=”string”>Vendor_MyModule/js/form/element/ui-select</item> <item name=”elementTmpl” xsi:type=”string”>ui/grid/filters/elements/ui-select</item>… Read More »Update selector field in Magento 2