Skip to content

Commit

Permalink
closes #95 do not change canSendNewEmailFlag if not svea as payment m…
Browse files Browse the repository at this point in the history
…ethod
  • Loading branch information
iesus committed Jan 23, 2019
1 parent 8c3350f commit d916c24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public function execute(\Magento\Framework\Event\Observer $observer)
$order = $observer->getEvent()->getData('order');
$quote = $observer->getEvent()->getData('quote');

if ('webbhuset_sveacheckout' != $order->getPayment()->getMethod()) {

return $this;
}

foreach ($this->attributes as $attribute) {
if ($quote->hasData($attribute)) {
$order->setData($attribute, $quote->getData($attribute));
Expand Down

0 comments on commit d916c24

Please sign in to comment.