Disable Order Confirmation Email for particular customer groupProgrammatically Assign Customer Group for Selected Category Product OrderSend BCC of order confirmation email for a particular SKUChange Order Confirmation Email For Specific OrdersOrder email confirmationSend Copy of Order Confirmation email programmatically in magento 2how disable automatic send mail confirmation ORDER in magento?magento 2 order confirmation email sending before payment gatway redirectionMagento | How to send order email copy to the Customer Group emailAuto email confirmation of their ordercustomer get order confirmation email before pay
Is there a hypothetical scenario that would make Earth uninhabitable for humans, but not for (the majority of) other animals?
Custom alignment for GeoMarkers
Is there a place to find the pricing for things not mentioned in the PHB? (non-magical)
My adviser wants to be the first author
How could a scammer know the apps on my phone / iTunes account?
Book about superhumans hiding among normal humans
Are ETF trackers fundamentally better than individual stocks?
A single argument pattern definition applies to multiple-argument patterns?
Are Roman Catholic priests ever addressed as pastor
PTIJ: Who should I vote for? (21st Knesset Edition)
Why does energy conservation give me the wrong answer in this inelastic collision problem?
Why did it take so long to abandon sail after steamships were demonstrated?
Most cost effective thermostat setting: consistent temperature vs. lowest temperature possible
Math equation in non italic font
Is there a symmetric-key algorithm which we can use for creating a signature?
Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?
What is the significance behind "40 days" that often appears in the Bible?
Are relativity and doppler effect related?
New passport but visa is in old (lost) passport
Why is the President allowed to veto a cancellation of emergency powers?
I am confused as to how the inverse of a certain function is found.
Is it good practice to use Linear Least-Squares with SMA?
Knife as defense against stray dogs
Is honey really a supersaturated solution? Does heating to un-crystalize redissolve it or melt it?
Disable Order Confirmation Email for particular customer group
Programmatically Assign Customer Group for Selected Category Product OrderSend BCC of order confirmation email for a particular SKUChange Order Confirmation Email For Specific OrdersOrder email confirmationSend Copy of Order Confirmation email programmatically in magento 2how disable automatic send mail confirmation ORDER in magento?magento 2 order confirmation email sending before payment gatway redirectionMagento | How to send order email copy to the Customer Group emailAuto email confirmation of their ordercustomer get order confirmation email before pay
Is there a way to disable a Magento Order Confirmation Email for a particular customer group ?
I won't mind someone giving me a guide on how to create a custom module for this function.
Thanks
magento-1.9 sales-order order-email customer-group m2e
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Is there a way to disable a Magento Order Confirmation Email for a particular customer group ?
I won't mind someone giving me a guide on how to create a custom module for this function.
Thanks
magento-1.9 sales-order order-email customer-group m2e
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Have you found a solution?
– sv3n
Jul 7 '17 at 21:54
Nope Not yet. Still working on the project
– user2531490
Jul 14 '17 at 11:21
1) See updated answer. 2) Can you give please post some details about your M2E settings? (multiple account, assigned customer groups etc.) It's an interessting question, that I can use too ... but it's not on top of my priority list ... so please add some info to make it reproducable.
– sv3n
Jul 14 '17 at 17:22
add a comment |
Is there a way to disable a Magento Order Confirmation Email for a particular customer group ?
I won't mind someone giving me a guide on how to create a custom module for this function.
Thanks
magento-1.9 sales-order order-email customer-group m2e
Is there a way to disable a Magento Order Confirmation Email for a particular customer group ?
I won't mind someone giving me a guide on how to create a custom module for this function.
Thanks
magento-1.9 sales-order order-email customer-group m2e
magento-1.9 sales-order order-email customer-group m2e
edited Jun 30 '17 at 12:58
sv3n
9,87062355
9,87062355
asked Jun 28 '17 at 14:59
user2531490user2531490
599
599
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Have you found a solution?
– sv3n
Jul 7 '17 at 21:54
Nope Not yet. Still working on the project
– user2531490
Jul 14 '17 at 11:21
1) See updated answer. 2) Can you give please post some details about your M2E settings? (multiple account, assigned customer groups etc.) It's an interessting question, that I can use too ... but it's not on top of my priority list ... so please add some info to make it reproducable.
– sv3n
Jul 14 '17 at 17:22
add a comment |
Have you found a solution?
– sv3n
Jul 7 '17 at 21:54
Nope Not yet. Still working on the project
– user2531490
Jul 14 '17 at 11:21
1) See updated answer. 2) Can you give please post some details about your M2E settings? (multiple account, assigned customer groups etc.) It's an interessting question, that I can use too ... but it's not on top of my priority list ... so please add some info to make it reproducable.
– sv3n
Jul 14 '17 at 17:22
Have you found a solution?
– sv3n
Jul 7 '17 at 21:54
Have you found a solution?
– sv3n
Jul 7 '17 at 21:54
Nope Not yet. Still working on the project
– user2531490
Jul 14 '17 at 11:21
Nope Not yet. Still working on the project
– user2531490
Jul 14 '17 at 11:21
1) See updated answer. 2) Can you give please post some details about your M2E settings? (multiple account, assigned customer groups etc.) It's an interessting question, that I can use too ... but it's not on top of my priority list ... so please add some info to make it reproducable.
– sv3n
Jul 14 '17 at 17:22
1) See updated answer. 2) Can you give please post some details about your M2E settings? (multiple account, assigned customer groups etc.) It's an interessting question, that I can use too ... but it's not on top of my priority list ... so please add some info to make it reproducable.
– sv3n
Jul 14 '17 at 17:22
add a comment |
2 Answers
2
active
oldest
votes
For this, you have to rewrite the queueNewOrderEmail() function from: app/code/core/Mage/Sales/Model/Order.php to your local codePool then put this:
public function queueNewOrderEmail($forceMode = false)
$storeId = $this->getStore()->getId();
if (!Mage::helper('sales')->canSendNewOrderEmail($storeId))
return $this;
// Get the destination email addresses to send copies to
$copyTo = $this->_getEmails(self::XML_PATH_EMAIL_COPY_TO);
$copyMethod = Mage::getStoreConfig(self::XML_PATH_EMAIL_COPY_METHOD, $storeId);
// Start store emulation process
/** @var $appEmulation Mage_Core_Model_App_Emulation */
$appEmulation = Mage::getSingleton('core/app_emulation');
$initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId);
try
// Retrieve specified view block from appropriate design package (depends on emulated store)
$paymentBlock = Mage::helper('payment')->getInfoBlock($this->getPayment())
->setIsSecureMode(true);
$paymentBlock->getMethod()->setStore($storeId);
$paymentBlockHtml = $paymentBlock->toHtml();
catch (Exception $exception)
// Stop store emulation process
$appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
throw $exception;
// Stop store emulation process
$appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
// Retrieve corresponding email template id and customer name
if ($this->getCustomerIsGuest())
$templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_GUEST_TEMPLATE, $storeId);
$customerName = $this->getBillingAddress()->getName();
else
$templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE, $storeId);
$customerName = $this->getCustomerName();
/** @var $mailer Mage_Core_Model_Email_Template_Mailer */
$mailer = Mage::getModel('core/email_template_mailer');
/** @var $emailInfo Mage_Core_Model_Email_Info */
$emailInfo = Mage::getModel('core/email_info');
$emailInfo->addTo($this->getCustomerEmail(), $customerName);
if ($copyTo && $copyMethod == 'bcc')
// Add bcc to customer email
foreach ($copyTo as $email)
$emailInfo->addBcc($email);
$mailer->addEmailInfo($emailInfo);
// Email copies are sent as separated emails if their copy method is 'copy'
if ($copyTo && $copyMethod == 'copy')
foreach ($copyTo as $email)
$emailInfo = Mage::getModel('core/email_info');
$emailInfo->addTo($email);
$mailer->addEmailInfo($emailInfo);
// Set all required params and send emails
$mailer->setSender(Mage::getStoreConfig(self::XML_PATH_EMAIL_IDENTITY, $storeId));
$mailer->setStoreId($storeId);
$mailer->setTemplateId($templateId);
$mailer->setTemplateParams(array(
'order' => $this,
'billing' => $this->getBillingAddress(),
'payment_html' => $paymentBlockHtml
));
/** @var $emailQueue Mage_Core_Model_Email_Queue */
$emailQueue = Mage::getModel('core/email_queue');
$emailQueue->setEntityId($this->getId())
->setEntityType(self::ENTITY)
->setEventType(self::EMAIL_EVENT_NAME_NEW_ORDER)
->setIsForceCheck(!$forceMode);
//The add
$customerGroups = array(1, 3); //the customer group id's that you don't send Email
$currentCustomerGroup = Mage::getSingleton('customer/session')->getCustomerGroupId();
if(!in_array($currentCustomerGroup, $customerGroups))
$mailer->setQueue($emailQueue)->send();
$this->setEmailSent(true);
$this->_getResource()->saveAttribute($this, 'email_sent');
return $this;
Hi, Thanks for your input. This didn’t work for me.
– user2531490
Jun 30 '17 at 12:49
It should work, i tested it ! maybe you haven't rewrite correctly the model ! reference you to this:http://inchoo.net/magento/overriding-magento-blocks-models-helpers-and-controllers/
– PЯINCƏ
Jul 1 '17 at 0:11
add a comment |
You can create a small extension like this:
app/code/local/My/Module/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<My_Module>
<version>0.0.1</version>
</My_Module>
</modules>
<global>
<models>
<my_module>
<class>My_Module_Model</class>
</my_module>
</models>
<events>
<!-- onepage checkout -->
<checkout_type_onepage_save_order_after>
<observers>
<disable_new_order_email>
<class>my_module/observer</class>
<method>disableNewOrderEmail</method>
</disable_new_order_email>
</observers>
</checkout_type_onepage_save_order_after>
<!-- multishipping checkout -->
<checkout_type_multishipping_create_orders_single>
<observers>
<disable_new_order_email>
<class>my_module/observer</class>
<method>disableNewOrderEmail</method>
</disable_new_order_email>
</observers>
</checkout_type_multishipping_create_orders_single>
</events>
</global>
</config>
app/code/local/My/Module/Model/Observer.php
class My_Module_Model_Observer extends Mage_Core_Model_Observer
public function disableNewOrderEmail(Varien_Event_Observer $observer)
$order = $observer->getOrder();
$noEmail = array(0, 1, 2, 3); // your customer group IDs
if (in_array($order->getCustomerGroupId(), $noEmail))
$order->setCanSendNewEmailFlag(false);
Reference to the related code:
Mage_Checkout_Model_Type_Onepage::saveOrder()
public function saveOrder()
...
Mage::dispatchEvent('checkout_type_onepage_save_order_after',
array('order'=>$order, 'quote'=>$this->getQuote()));
...
if (!$redirectUrl && $order->getCanSendNewEmailFlag())
try
$order->queueNewOrderEmail();
catch (Exception $e)
Mage::logException($e);
...
Edit:
For M2E you can try to modify/rewrite
Ess_M2ePro_Model_Amazon_OrderEss_M2ePro_Model_Ebay_Order
Try this:
public function afterCreateMagentoOrder()
if ($this->getAmazonAccount()->isMagentoOrdersCustomerNewNotifyWhenOrderCreated())
$order = $this->getParentObject()->getMagentoOrder();
$noEmail = array(0, 1, 2, 3); // your customer group IDs
if (in_array($order->getCustomerGroupId(), $noEmail))
if (method_exists($order, 'queueNewOrderEmail'))
$order->queueNewOrderEmail(false);
else
$order->sendNewOrderEmail();
if ($this->isFulfilledByAmazon() && !$this->getAmazonAccount()->isMagentoOrdersFbaStockEnabled())
Mage::dispatchEvent('m2epro_amazon_fba_magento_order_place_after', array(
'magento_order' => $this->getParentObject()->getMagentoOrder()
));
Edit 2:
In M2Es account configuration you have to set a customer group that is used for eBay/Amazon order creation. So, for one account the customer group is always the same!
If you have more the one account you can set differnt groups (like amazon-uk, amazon-it) and use the code from above. (I haven't tested it yet, but i can do it next week)
Thanks for your input. This wouldn’t work for me because the orders in questions are Amazon orders that are been generated my M2E, not the normal Magento orders. Thanks
– user2531490
Jun 30 '17 at 12:51
Hi, Thanks for getting back in touch. Here is my setup. I have two customer groups named Amazon Customers and EBay Customer with this corresponding Group Ids 7 & 8. So all orders that’s comes through any of the Amazon Store fronts (like amazon-uk, amazon-it) goes into the Amazon Customers with Group id 7 likewise the Ebay Orders. So I am trying to stop Magento from sending Order Confirmation emails or any email at all to all the customers that belongs to the Amazon Customers with Group id 7. Thanks
– user2531490
Jul 17 '17 at 8:47
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f181160%2fdisable-order-confirmation-email-for-particular-customer-group%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
For this, you have to rewrite the queueNewOrderEmail() function from: app/code/core/Mage/Sales/Model/Order.php to your local codePool then put this:
public function queueNewOrderEmail($forceMode = false)
$storeId = $this->getStore()->getId();
if (!Mage::helper('sales')->canSendNewOrderEmail($storeId))
return $this;
// Get the destination email addresses to send copies to
$copyTo = $this->_getEmails(self::XML_PATH_EMAIL_COPY_TO);
$copyMethod = Mage::getStoreConfig(self::XML_PATH_EMAIL_COPY_METHOD, $storeId);
// Start store emulation process
/** @var $appEmulation Mage_Core_Model_App_Emulation */
$appEmulation = Mage::getSingleton('core/app_emulation');
$initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId);
try
// Retrieve specified view block from appropriate design package (depends on emulated store)
$paymentBlock = Mage::helper('payment')->getInfoBlock($this->getPayment())
->setIsSecureMode(true);
$paymentBlock->getMethod()->setStore($storeId);
$paymentBlockHtml = $paymentBlock->toHtml();
catch (Exception $exception)
// Stop store emulation process
$appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
throw $exception;
// Stop store emulation process
$appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
// Retrieve corresponding email template id and customer name
if ($this->getCustomerIsGuest())
$templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_GUEST_TEMPLATE, $storeId);
$customerName = $this->getBillingAddress()->getName();
else
$templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE, $storeId);
$customerName = $this->getCustomerName();
/** @var $mailer Mage_Core_Model_Email_Template_Mailer */
$mailer = Mage::getModel('core/email_template_mailer');
/** @var $emailInfo Mage_Core_Model_Email_Info */
$emailInfo = Mage::getModel('core/email_info');
$emailInfo->addTo($this->getCustomerEmail(), $customerName);
if ($copyTo && $copyMethod == 'bcc')
// Add bcc to customer email
foreach ($copyTo as $email)
$emailInfo->addBcc($email);
$mailer->addEmailInfo($emailInfo);
// Email copies are sent as separated emails if their copy method is 'copy'
if ($copyTo && $copyMethod == 'copy')
foreach ($copyTo as $email)
$emailInfo = Mage::getModel('core/email_info');
$emailInfo->addTo($email);
$mailer->addEmailInfo($emailInfo);
// Set all required params and send emails
$mailer->setSender(Mage::getStoreConfig(self::XML_PATH_EMAIL_IDENTITY, $storeId));
$mailer->setStoreId($storeId);
$mailer->setTemplateId($templateId);
$mailer->setTemplateParams(array(
'order' => $this,
'billing' => $this->getBillingAddress(),
'payment_html' => $paymentBlockHtml
));
/** @var $emailQueue Mage_Core_Model_Email_Queue */
$emailQueue = Mage::getModel('core/email_queue');
$emailQueue->setEntityId($this->getId())
->setEntityType(self::ENTITY)
->setEventType(self::EMAIL_EVENT_NAME_NEW_ORDER)
->setIsForceCheck(!$forceMode);
//The add
$customerGroups = array(1, 3); //the customer group id's that you don't send Email
$currentCustomerGroup = Mage::getSingleton('customer/session')->getCustomerGroupId();
if(!in_array($currentCustomerGroup, $customerGroups))
$mailer->setQueue($emailQueue)->send();
$this->setEmailSent(true);
$this->_getResource()->saveAttribute($this, 'email_sent');
return $this;
Hi, Thanks for your input. This didn’t work for me.
– user2531490
Jun 30 '17 at 12:49
It should work, i tested it ! maybe you haven't rewrite correctly the model ! reference you to this:http://inchoo.net/magento/overriding-magento-blocks-models-helpers-and-controllers/
– PЯINCƏ
Jul 1 '17 at 0:11
add a comment |
For this, you have to rewrite the queueNewOrderEmail() function from: app/code/core/Mage/Sales/Model/Order.php to your local codePool then put this:
public function queueNewOrderEmail($forceMode = false)
$storeId = $this->getStore()->getId();
if (!Mage::helper('sales')->canSendNewOrderEmail($storeId))
return $this;
// Get the destination email addresses to send copies to
$copyTo = $this->_getEmails(self::XML_PATH_EMAIL_COPY_TO);
$copyMethod = Mage::getStoreConfig(self::XML_PATH_EMAIL_COPY_METHOD, $storeId);
// Start store emulation process
/** @var $appEmulation Mage_Core_Model_App_Emulation */
$appEmulation = Mage::getSingleton('core/app_emulation');
$initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId);
try
// Retrieve specified view block from appropriate design package (depends on emulated store)
$paymentBlock = Mage::helper('payment')->getInfoBlock($this->getPayment())
->setIsSecureMode(true);
$paymentBlock->getMethod()->setStore($storeId);
$paymentBlockHtml = $paymentBlock->toHtml();
catch (Exception $exception)
// Stop store emulation process
$appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
throw $exception;
// Stop store emulation process
$appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
// Retrieve corresponding email template id and customer name
if ($this->getCustomerIsGuest())
$templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_GUEST_TEMPLATE, $storeId);
$customerName = $this->getBillingAddress()->getName();
else
$templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE, $storeId);
$customerName = $this->getCustomerName();
/** @var $mailer Mage_Core_Model_Email_Template_Mailer */
$mailer = Mage::getModel('core/email_template_mailer');
/** @var $emailInfo Mage_Core_Model_Email_Info */
$emailInfo = Mage::getModel('core/email_info');
$emailInfo->addTo($this->getCustomerEmail(), $customerName);
if ($copyTo && $copyMethod == 'bcc')
// Add bcc to customer email
foreach ($copyTo as $email)
$emailInfo->addBcc($email);
$mailer->addEmailInfo($emailInfo);
// Email copies are sent as separated emails if their copy method is 'copy'
if ($copyTo && $copyMethod == 'copy')
foreach ($copyTo as $email)
$emailInfo = Mage::getModel('core/email_info');
$emailInfo->addTo($email);
$mailer->addEmailInfo($emailInfo);
// Set all required params and send emails
$mailer->setSender(Mage::getStoreConfig(self::XML_PATH_EMAIL_IDENTITY, $storeId));
$mailer->setStoreId($storeId);
$mailer->setTemplateId($templateId);
$mailer->setTemplateParams(array(
'order' => $this,
'billing' => $this->getBillingAddress(),
'payment_html' => $paymentBlockHtml
));
/** @var $emailQueue Mage_Core_Model_Email_Queue */
$emailQueue = Mage::getModel('core/email_queue');
$emailQueue->setEntityId($this->getId())
->setEntityType(self::ENTITY)
->setEventType(self::EMAIL_EVENT_NAME_NEW_ORDER)
->setIsForceCheck(!$forceMode);
//The add
$customerGroups = array(1, 3); //the customer group id's that you don't send Email
$currentCustomerGroup = Mage::getSingleton('customer/session')->getCustomerGroupId();
if(!in_array($currentCustomerGroup, $customerGroups))
$mailer->setQueue($emailQueue)->send();
$this->setEmailSent(true);
$this->_getResource()->saveAttribute($this, 'email_sent');
return $this;
Hi, Thanks for your input. This didn’t work for me.
– user2531490
Jun 30 '17 at 12:49
It should work, i tested it ! maybe you haven't rewrite correctly the model ! reference you to this:http://inchoo.net/magento/overriding-magento-blocks-models-helpers-and-controllers/
– PЯINCƏ
Jul 1 '17 at 0:11
add a comment |
For this, you have to rewrite the queueNewOrderEmail() function from: app/code/core/Mage/Sales/Model/Order.php to your local codePool then put this:
public function queueNewOrderEmail($forceMode = false)
$storeId = $this->getStore()->getId();
if (!Mage::helper('sales')->canSendNewOrderEmail($storeId))
return $this;
// Get the destination email addresses to send copies to
$copyTo = $this->_getEmails(self::XML_PATH_EMAIL_COPY_TO);
$copyMethod = Mage::getStoreConfig(self::XML_PATH_EMAIL_COPY_METHOD, $storeId);
// Start store emulation process
/** @var $appEmulation Mage_Core_Model_App_Emulation */
$appEmulation = Mage::getSingleton('core/app_emulation');
$initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId);
try
// Retrieve specified view block from appropriate design package (depends on emulated store)
$paymentBlock = Mage::helper('payment')->getInfoBlock($this->getPayment())
->setIsSecureMode(true);
$paymentBlock->getMethod()->setStore($storeId);
$paymentBlockHtml = $paymentBlock->toHtml();
catch (Exception $exception)
// Stop store emulation process
$appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
throw $exception;
// Stop store emulation process
$appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
// Retrieve corresponding email template id and customer name
if ($this->getCustomerIsGuest())
$templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_GUEST_TEMPLATE, $storeId);
$customerName = $this->getBillingAddress()->getName();
else
$templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE, $storeId);
$customerName = $this->getCustomerName();
/** @var $mailer Mage_Core_Model_Email_Template_Mailer */
$mailer = Mage::getModel('core/email_template_mailer');
/** @var $emailInfo Mage_Core_Model_Email_Info */
$emailInfo = Mage::getModel('core/email_info');
$emailInfo->addTo($this->getCustomerEmail(), $customerName);
if ($copyTo && $copyMethod == 'bcc')
// Add bcc to customer email
foreach ($copyTo as $email)
$emailInfo->addBcc($email);
$mailer->addEmailInfo($emailInfo);
// Email copies are sent as separated emails if their copy method is 'copy'
if ($copyTo && $copyMethod == 'copy')
foreach ($copyTo as $email)
$emailInfo = Mage::getModel('core/email_info');
$emailInfo->addTo($email);
$mailer->addEmailInfo($emailInfo);
// Set all required params and send emails
$mailer->setSender(Mage::getStoreConfig(self::XML_PATH_EMAIL_IDENTITY, $storeId));
$mailer->setStoreId($storeId);
$mailer->setTemplateId($templateId);
$mailer->setTemplateParams(array(
'order' => $this,
'billing' => $this->getBillingAddress(),
'payment_html' => $paymentBlockHtml
));
/** @var $emailQueue Mage_Core_Model_Email_Queue */
$emailQueue = Mage::getModel('core/email_queue');
$emailQueue->setEntityId($this->getId())
->setEntityType(self::ENTITY)
->setEventType(self::EMAIL_EVENT_NAME_NEW_ORDER)
->setIsForceCheck(!$forceMode);
//The add
$customerGroups = array(1, 3); //the customer group id's that you don't send Email
$currentCustomerGroup = Mage::getSingleton('customer/session')->getCustomerGroupId();
if(!in_array($currentCustomerGroup, $customerGroups))
$mailer->setQueue($emailQueue)->send();
$this->setEmailSent(true);
$this->_getResource()->saveAttribute($this, 'email_sent');
return $this;
For this, you have to rewrite the queueNewOrderEmail() function from: app/code/core/Mage/Sales/Model/Order.php to your local codePool then put this:
public function queueNewOrderEmail($forceMode = false)
$storeId = $this->getStore()->getId();
if (!Mage::helper('sales')->canSendNewOrderEmail($storeId))
return $this;
// Get the destination email addresses to send copies to
$copyTo = $this->_getEmails(self::XML_PATH_EMAIL_COPY_TO);
$copyMethod = Mage::getStoreConfig(self::XML_PATH_EMAIL_COPY_METHOD, $storeId);
// Start store emulation process
/** @var $appEmulation Mage_Core_Model_App_Emulation */
$appEmulation = Mage::getSingleton('core/app_emulation');
$initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId);
try
// Retrieve specified view block from appropriate design package (depends on emulated store)
$paymentBlock = Mage::helper('payment')->getInfoBlock($this->getPayment())
->setIsSecureMode(true);
$paymentBlock->getMethod()->setStore($storeId);
$paymentBlockHtml = $paymentBlock->toHtml();
catch (Exception $exception)
// Stop store emulation process
$appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
throw $exception;
// Stop store emulation process
$appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
// Retrieve corresponding email template id and customer name
if ($this->getCustomerIsGuest())
$templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_GUEST_TEMPLATE, $storeId);
$customerName = $this->getBillingAddress()->getName();
else
$templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE, $storeId);
$customerName = $this->getCustomerName();
/** @var $mailer Mage_Core_Model_Email_Template_Mailer */
$mailer = Mage::getModel('core/email_template_mailer');
/** @var $emailInfo Mage_Core_Model_Email_Info */
$emailInfo = Mage::getModel('core/email_info');
$emailInfo->addTo($this->getCustomerEmail(), $customerName);
if ($copyTo && $copyMethod == 'bcc')
// Add bcc to customer email
foreach ($copyTo as $email)
$emailInfo->addBcc($email);
$mailer->addEmailInfo($emailInfo);
// Email copies are sent as separated emails if their copy method is 'copy'
if ($copyTo && $copyMethod == 'copy')
foreach ($copyTo as $email)
$emailInfo = Mage::getModel('core/email_info');
$emailInfo->addTo($email);
$mailer->addEmailInfo($emailInfo);
// Set all required params and send emails
$mailer->setSender(Mage::getStoreConfig(self::XML_PATH_EMAIL_IDENTITY, $storeId));
$mailer->setStoreId($storeId);
$mailer->setTemplateId($templateId);
$mailer->setTemplateParams(array(
'order' => $this,
'billing' => $this->getBillingAddress(),
'payment_html' => $paymentBlockHtml
));
/** @var $emailQueue Mage_Core_Model_Email_Queue */
$emailQueue = Mage::getModel('core/email_queue');
$emailQueue->setEntityId($this->getId())
->setEntityType(self::ENTITY)
->setEventType(self::EMAIL_EVENT_NAME_NEW_ORDER)
->setIsForceCheck(!$forceMode);
//The add
$customerGroups = array(1, 3); //the customer group id's that you don't send Email
$currentCustomerGroup = Mage::getSingleton('customer/session')->getCustomerGroupId();
if(!in_array($currentCustomerGroup, $customerGroups))
$mailer->setQueue($emailQueue)->send();
$this->setEmailSent(true);
$this->_getResource()->saveAttribute($this, 'email_sent');
return $this;
answered Jun 28 '17 at 15:58
PЯINCƏPЯINCƏ
8,29631143
8,29631143
Hi, Thanks for your input. This didn’t work for me.
– user2531490
Jun 30 '17 at 12:49
It should work, i tested it ! maybe you haven't rewrite correctly the model ! reference you to this:http://inchoo.net/magento/overriding-magento-blocks-models-helpers-and-controllers/
– PЯINCƏ
Jul 1 '17 at 0:11
add a comment |
Hi, Thanks for your input. This didn’t work for me.
– user2531490
Jun 30 '17 at 12:49
It should work, i tested it ! maybe you haven't rewrite correctly the model ! reference you to this:http://inchoo.net/magento/overriding-magento-blocks-models-helpers-and-controllers/
– PЯINCƏ
Jul 1 '17 at 0:11
Hi, Thanks for your input. This didn’t work for me.
– user2531490
Jun 30 '17 at 12:49
Hi, Thanks for your input. This didn’t work for me.
– user2531490
Jun 30 '17 at 12:49
It should work, i tested it ! maybe you haven't rewrite correctly the model ! reference you to this:
http://inchoo.net/magento/overriding-magento-blocks-models-helpers-and-controllers/– PЯINCƏ
Jul 1 '17 at 0:11
It should work, i tested it ! maybe you haven't rewrite correctly the model ! reference you to this:
http://inchoo.net/magento/overriding-magento-blocks-models-helpers-and-controllers/– PЯINCƏ
Jul 1 '17 at 0:11
add a comment |
You can create a small extension like this:
app/code/local/My/Module/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<My_Module>
<version>0.0.1</version>
</My_Module>
</modules>
<global>
<models>
<my_module>
<class>My_Module_Model</class>
</my_module>
</models>
<events>
<!-- onepage checkout -->
<checkout_type_onepage_save_order_after>
<observers>
<disable_new_order_email>
<class>my_module/observer</class>
<method>disableNewOrderEmail</method>
</disable_new_order_email>
</observers>
</checkout_type_onepage_save_order_after>
<!-- multishipping checkout -->
<checkout_type_multishipping_create_orders_single>
<observers>
<disable_new_order_email>
<class>my_module/observer</class>
<method>disableNewOrderEmail</method>
</disable_new_order_email>
</observers>
</checkout_type_multishipping_create_orders_single>
</events>
</global>
</config>
app/code/local/My/Module/Model/Observer.php
class My_Module_Model_Observer extends Mage_Core_Model_Observer
public function disableNewOrderEmail(Varien_Event_Observer $observer)
$order = $observer->getOrder();
$noEmail = array(0, 1, 2, 3); // your customer group IDs
if (in_array($order->getCustomerGroupId(), $noEmail))
$order->setCanSendNewEmailFlag(false);
Reference to the related code:
Mage_Checkout_Model_Type_Onepage::saveOrder()
public function saveOrder()
...
Mage::dispatchEvent('checkout_type_onepage_save_order_after',
array('order'=>$order, 'quote'=>$this->getQuote()));
...
if (!$redirectUrl && $order->getCanSendNewEmailFlag())
try
$order->queueNewOrderEmail();
catch (Exception $e)
Mage::logException($e);
...
Edit:
For M2E you can try to modify/rewrite
Ess_M2ePro_Model_Amazon_OrderEss_M2ePro_Model_Ebay_Order
Try this:
public function afterCreateMagentoOrder()
if ($this->getAmazonAccount()->isMagentoOrdersCustomerNewNotifyWhenOrderCreated())
$order = $this->getParentObject()->getMagentoOrder();
$noEmail = array(0, 1, 2, 3); // your customer group IDs
if (in_array($order->getCustomerGroupId(), $noEmail))
if (method_exists($order, 'queueNewOrderEmail'))
$order->queueNewOrderEmail(false);
else
$order->sendNewOrderEmail();
if ($this->isFulfilledByAmazon() && !$this->getAmazonAccount()->isMagentoOrdersFbaStockEnabled())
Mage::dispatchEvent('m2epro_amazon_fba_magento_order_place_after', array(
'magento_order' => $this->getParentObject()->getMagentoOrder()
));
Edit 2:
In M2Es account configuration you have to set a customer group that is used for eBay/Amazon order creation. So, for one account the customer group is always the same!
If you have more the one account you can set differnt groups (like amazon-uk, amazon-it) and use the code from above. (I haven't tested it yet, but i can do it next week)
Thanks for your input. This wouldn’t work for me because the orders in questions are Amazon orders that are been generated my M2E, not the normal Magento orders. Thanks
– user2531490
Jun 30 '17 at 12:51
Hi, Thanks for getting back in touch. Here is my setup. I have two customer groups named Amazon Customers and EBay Customer with this corresponding Group Ids 7 & 8. So all orders that’s comes through any of the Amazon Store fronts (like amazon-uk, amazon-it) goes into the Amazon Customers with Group id 7 likewise the Ebay Orders. So I am trying to stop Magento from sending Order Confirmation emails or any email at all to all the customers that belongs to the Amazon Customers with Group id 7. Thanks
– user2531490
Jul 17 '17 at 8:47
add a comment |
You can create a small extension like this:
app/code/local/My/Module/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<My_Module>
<version>0.0.1</version>
</My_Module>
</modules>
<global>
<models>
<my_module>
<class>My_Module_Model</class>
</my_module>
</models>
<events>
<!-- onepage checkout -->
<checkout_type_onepage_save_order_after>
<observers>
<disable_new_order_email>
<class>my_module/observer</class>
<method>disableNewOrderEmail</method>
</disable_new_order_email>
</observers>
</checkout_type_onepage_save_order_after>
<!-- multishipping checkout -->
<checkout_type_multishipping_create_orders_single>
<observers>
<disable_new_order_email>
<class>my_module/observer</class>
<method>disableNewOrderEmail</method>
</disable_new_order_email>
</observers>
</checkout_type_multishipping_create_orders_single>
</events>
</global>
</config>
app/code/local/My/Module/Model/Observer.php
class My_Module_Model_Observer extends Mage_Core_Model_Observer
public function disableNewOrderEmail(Varien_Event_Observer $observer)
$order = $observer->getOrder();
$noEmail = array(0, 1, 2, 3); // your customer group IDs
if (in_array($order->getCustomerGroupId(), $noEmail))
$order->setCanSendNewEmailFlag(false);
Reference to the related code:
Mage_Checkout_Model_Type_Onepage::saveOrder()
public function saveOrder()
...
Mage::dispatchEvent('checkout_type_onepage_save_order_after',
array('order'=>$order, 'quote'=>$this->getQuote()));
...
if (!$redirectUrl && $order->getCanSendNewEmailFlag())
try
$order->queueNewOrderEmail();
catch (Exception $e)
Mage::logException($e);
...
Edit:
For M2E you can try to modify/rewrite
Ess_M2ePro_Model_Amazon_OrderEss_M2ePro_Model_Ebay_Order
Try this:
public function afterCreateMagentoOrder()
if ($this->getAmazonAccount()->isMagentoOrdersCustomerNewNotifyWhenOrderCreated())
$order = $this->getParentObject()->getMagentoOrder();
$noEmail = array(0, 1, 2, 3); // your customer group IDs
if (in_array($order->getCustomerGroupId(), $noEmail))
if (method_exists($order, 'queueNewOrderEmail'))
$order->queueNewOrderEmail(false);
else
$order->sendNewOrderEmail();
if ($this->isFulfilledByAmazon() && !$this->getAmazonAccount()->isMagentoOrdersFbaStockEnabled())
Mage::dispatchEvent('m2epro_amazon_fba_magento_order_place_after', array(
'magento_order' => $this->getParentObject()->getMagentoOrder()
));
Edit 2:
In M2Es account configuration you have to set a customer group that is used for eBay/Amazon order creation. So, for one account the customer group is always the same!
If you have more the one account you can set differnt groups (like amazon-uk, amazon-it) and use the code from above. (I haven't tested it yet, but i can do it next week)
Thanks for your input. This wouldn’t work for me because the orders in questions are Amazon orders that are been generated my M2E, not the normal Magento orders. Thanks
– user2531490
Jun 30 '17 at 12:51
Hi, Thanks for getting back in touch. Here is my setup. I have two customer groups named Amazon Customers and EBay Customer with this corresponding Group Ids 7 & 8. So all orders that’s comes through any of the Amazon Store fronts (like amazon-uk, amazon-it) goes into the Amazon Customers with Group id 7 likewise the Ebay Orders. So I am trying to stop Magento from sending Order Confirmation emails or any email at all to all the customers that belongs to the Amazon Customers with Group id 7. Thanks
– user2531490
Jul 17 '17 at 8:47
add a comment |
You can create a small extension like this:
app/code/local/My/Module/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<My_Module>
<version>0.0.1</version>
</My_Module>
</modules>
<global>
<models>
<my_module>
<class>My_Module_Model</class>
</my_module>
</models>
<events>
<!-- onepage checkout -->
<checkout_type_onepage_save_order_after>
<observers>
<disable_new_order_email>
<class>my_module/observer</class>
<method>disableNewOrderEmail</method>
</disable_new_order_email>
</observers>
</checkout_type_onepage_save_order_after>
<!-- multishipping checkout -->
<checkout_type_multishipping_create_orders_single>
<observers>
<disable_new_order_email>
<class>my_module/observer</class>
<method>disableNewOrderEmail</method>
</disable_new_order_email>
</observers>
</checkout_type_multishipping_create_orders_single>
</events>
</global>
</config>
app/code/local/My/Module/Model/Observer.php
class My_Module_Model_Observer extends Mage_Core_Model_Observer
public function disableNewOrderEmail(Varien_Event_Observer $observer)
$order = $observer->getOrder();
$noEmail = array(0, 1, 2, 3); // your customer group IDs
if (in_array($order->getCustomerGroupId(), $noEmail))
$order->setCanSendNewEmailFlag(false);
Reference to the related code:
Mage_Checkout_Model_Type_Onepage::saveOrder()
public function saveOrder()
...
Mage::dispatchEvent('checkout_type_onepage_save_order_after',
array('order'=>$order, 'quote'=>$this->getQuote()));
...
if (!$redirectUrl && $order->getCanSendNewEmailFlag())
try
$order->queueNewOrderEmail();
catch (Exception $e)
Mage::logException($e);
...
Edit:
For M2E you can try to modify/rewrite
Ess_M2ePro_Model_Amazon_OrderEss_M2ePro_Model_Ebay_Order
Try this:
public function afterCreateMagentoOrder()
if ($this->getAmazonAccount()->isMagentoOrdersCustomerNewNotifyWhenOrderCreated())
$order = $this->getParentObject()->getMagentoOrder();
$noEmail = array(0, 1, 2, 3); // your customer group IDs
if (in_array($order->getCustomerGroupId(), $noEmail))
if (method_exists($order, 'queueNewOrderEmail'))
$order->queueNewOrderEmail(false);
else
$order->sendNewOrderEmail();
if ($this->isFulfilledByAmazon() && !$this->getAmazonAccount()->isMagentoOrdersFbaStockEnabled())
Mage::dispatchEvent('m2epro_amazon_fba_magento_order_place_after', array(
'magento_order' => $this->getParentObject()->getMagentoOrder()
));
Edit 2:
In M2Es account configuration you have to set a customer group that is used for eBay/Amazon order creation. So, for one account the customer group is always the same!
If you have more the one account you can set differnt groups (like amazon-uk, amazon-it) and use the code from above. (I haven't tested it yet, but i can do it next week)
You can create a small extension like this:
app/code/local/My/Module/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<My_Module>
<version>0.0.1</version>
</My_Module>
</modules>
<global>
<models>
<my_module>
<class>My_Module_Model</class>
</my_module>
</models>
<events>
<!-- onepage checkout -->
<checkout_type_onepage_save_order_after>
<observers>
<disable_new_order_email>
<class>my_module/observer</class>
<method>disableNewOrderEmail</method>
</disable_new_order_email>
</observers>
</checkout_type_onepage_save_order_after>
<!-- multishipping checkout -->
<checkout_type_multishipping_create_orders_single>
<observers>
<disable_new_order_email>
<class>my_module/observer</class>
<method>disableNewOrderEmail</method>
</disable_new_order_email>
</observers>
</checkout_type_multishipping_create_orders_single>
</events>
</global>
</config>
app/code/local/My/Module/Model/Observer.php
class My_Module_Model_Observer extends Mage_Core_Model_Observer
public function disableNewOrderEmail(Varien_Event_Observer $observer)
$order = $observer->getOrder();
$noEmail = array(0, 1, 2, 3); // your customer group IDs
if (in_array($order->getCustomerGroupId(), $noEmail))
$order->setCanSendNewEmailFlag(false);
Reference to the related code:
Mage_Checkout_Model_Type_Onepage::saveOrder()
public function saveOrder()
...
Mage::dispatchEvent('checkout_type_onepage_save_order_after',
array('order'=>$order, 'quote'=>$this->getQuote()));
...
if (!$redirectUrl && $order->getCanSendNewEmailFlag())
try
$order->queueNewOrderEmail();
catch (Exception $e)
Mage::logException($e);
...
Edit:
For M2E you can try to modify/rewrite
Ess_M2ePro_Model_Amazon_OrderEss_M2ePro_Model_Ebay_Order
Try this:
public function afterCreateMagentoOrder()
if ($this->getAmazonAccount()->isMagentoOrdersCustomerNewNotifyWhenOrderCreated())
$order = $this->getParentObject()->getMagentoOrder();
$noEmail = array(0, 1, 2, 3); // your customer group IDs
if (in_array($order->getCustomerGroupId(), $noEmail))
if (method_exists($order, 'queueNewOrderEmail'))
$order->queueNewOrderEmail(false);
else
$order->sendNewOrderEmail();
if ($this->isFulfilledByAmazon() && !$this->getAmazonAccount()->isMagentoOrdersFbaStockEnabled())
Mage::dispatchEvent('m2epro_amazon_fba_magento_order_place_after', array(
'magento_order' => $this->getParentObject()->getMagentoOrder()
));
Edit 2:
In M2Es account configuration you have to set a customer group that is used for eBay/Amazon order creation. So, for one account the customer group is always the same!
If you have more the one account you can set differnt groups (like amazon-uk, amazon-it) and use the code from above. (I haven't tested it yet, but i can do it next week)
edited Jul 14 '17 at 17:19
answered Jun 28 '17 at 21:30
sv3nsv3n
9,87062355
9,87062355
Thanks for your input. This wouldn’t work for me because the orders in questions are Amazon orders that are been generated my M2E, not the normal Magento orders. Thanks
– user2531490
Jun 30 '17 at 12:51
Hi, Thanks for getting back in touch. Here is my setup. I have two customer groups named Amazon Customers and EBay Customer with this corresponding Group Ids 7 & 8. So all orders that’s comes through any of the Amazon Store fronts (like amazon-uk, amazon-it) goes into the Amazon Customers with Group id 7 likewise the Ebay Orders. So I am trying to stop Magento from sending Order Confirmation emails or any email at all to all the customers that belongs to the Amazon Customers with Group id 7. Thanks
– user2531490
Jul 17 '17 at 8:47
add a comment |
Thanks for your input. This wouldn’t work for me because the orders in questions are Amazon orders that are been generated my M2E, not the normal Magento orders. Thanks
– user2531490
Jun 30 '17 at 12:51
Hi, Thanks for getting back in touch. Here is my setup. I have two customer groups named Amazon Customers and EBay Customer with this corresponding Group Ids 7 & 8. So all orders that’s comes through any of the Amazon Store fronts (like amazon-uk, amazon-it) goes into the Amazon Customers with Group id 7 likewise the Ebay Orders. So I am trying to stop Magento from sending Order Confirmation emails or any email at all to all the customers that belongs to the Amazon Customers with Group id 7. Thanks
– user2531490
Jul 17 '17 at 8:47
Thanks for your input. This wouldn’t work for me because the orders in questions are Amazon orders that are been generated my M2E, not the normal Magento orders. Thanks
– user2531490
Jun 30 '17 at 12:51
Thanks for your input. This wouldn’t work for me because the orders in questions are Amazon orders that are been generated my M2E, not the normal Magento orders. Thanks
– user2531490
Jun 30 '17 at 12:51
Hi, Thanks for getting back in touch. Here is my setup. I have two customer groups named Amazon Customers and EBay Customer with this corresponding Group Ids 7 & 8. So all orders that’s comes through any of the Amazon Store fronts (like amazon-uk, amazon-it) goes into the Amazon Customers with Group id 7 likewise the Ebay Orders. So I am trying to stop Magento from sending Order Confirmation emails or any email at all to all the customers that belongs to the Amazon Customers with Group id 7. Thanks
– user2531490
Jul 17 '17 at 8:47
Hi, Thanks for getting back in touch. Here is my setup. I have two customer groups named Amazon Customers and EBay Customer with this corresponding Group Ids 7 & 8. So all orders that’s comes through any of the Amazon Store fronts (like amazon-uk, amazon-it) goes into the Amazon Customers with Group id 7 likewise the Ebay Orders. So I am trying to stop Magento from sending Order Confirmation emails or any email at all to all the customers that belongs to the Amazon Customers with Group id 7. Thanks
– user2531490
Jul 17 '17 at 8:47
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f181160%2fdisable-order-confirmation-email-for-particular-customer-group%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you found a solution?
– sv3n
Jul 7 '17 at 21:54
Nope Not yet. Still working on the project
– user2531490
Jul 14 '17 at 11:21
1) See updated answer. 2) Can you give please post some details about your M2E settings? (multiple account, assigned customer groups etc.) It's an interessting question, that I can use too ... but it's not on top of my priority list ... so please add some info to make it reproducable.
– sv3n
Jul 14 '17 at 17:22