Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit c0d07b14 authored by Nicolas's avatar Nicolas
Browse files

Suppression d'un plugin

parent b91c504c
No related branches found
No related tags found
No related merge requests found
<?php
namespace NicolasBejean\Base\Plugin\Magento\Sales\Block\Adminhtml\Order;
use \Magento\Framework\Mail\TransportInterface;
use \Closure;
class Create
{
public function __construct
(
)
{
}
public function canSendNewOrderConfirmationEmail(
TransportInterface $subject,
Closure $proceed
)
{
var_dump($subject->getMessage());
die();
$proceed();
}
}
\ No newline at end of file
<?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="Magento\Sales\Block\Adminhtml\Order\Create">
<plugin name="NewOrderSendEmail" type="NicolasBejean\Base\Plugin\Magento\Sales\Block\Adminhtml\Order\Create" sortOrder="0"/>
<!-- Changes sort order to Magento Plugins -->
<plugin name="WindowsSmtpConfig" type="Magento\Email\Model\Plugin\WindowsSmtpConfig" sortOrder="2"/>
<plugin name="EmailDisable" type="Magento\Email\Model\Mail\TransportInterfacePlugin" sortOrder="3"/>
</type>
</config>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment