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

How to terminate ping <dest> &

How to explain that I do not want to visit a country due to personal safety concern?

Recruiter wants very extensive technical details about all of my previous work

ERC721: How to get the owned tokens of an address

et qui - how do you really understand that kind of phraseology?

Why one should not leave fingerprints on bulbs and plugs?

Happy pi day, everyone!

I got the following comment from a reputed math journal. What does it mean?

New passport but visa is in old (lost) passport

Is honey really a supersaturated solution? Does heating to un-crystalize redissolve it or melt it?

What is a ^ b and (a & b) << 1?

Is there a hypothetical scenario that would make Earth uninhabitable for humans, but not for (the majority of) other animals?

Is it good practice to use Linear Least-Squares with SMA?

Math equation in non italic font

How do I change two letters closest to a string and one letter immediately after a string using Notepad++?

What is the Japanese sound word for the clinking of money?

Bach's Toccata and Fugue in D minor breaks the "no parallel octaves" rule?

Bacteria contamination inside a thermos bottle

The German vowel “a” changes to the English “i”

My adviser wants to be the first author

Is it normal that my co-workers at a fitness company criticize my food choices?

Have the tides ever turned twice on any open problem?

Counting models satisfying a boolean formula

Is there a symmetric-key algorithm which we can use for creating a signature?



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













2















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










share|improve this question
















bumped to the homepage by Community 10 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















2















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










share|improve this question
















bumped to the homepage by Community 10 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













2












2








2


1






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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 10 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 10 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

















  • 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










2 Answers
2






active

oldest

votes


















0














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;






share|improve this answer























  • 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


















0














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_Order

  • Ess_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)






share|improve this answer

























  • 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










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
);



);













draft saved

draft discarded


















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









0














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;






share|improve this answer























  • 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















0














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;






share|improve this answer























  • 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













0












0








0







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;






share|improve this answer













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;







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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













0














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_Order

  • Ess_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)






share|improve this answer

























  • 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















0














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_Order

  • Ess_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)






share|improve this answer

























  • 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













0












0








0







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_Order

  • Ess_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)






share|improve this answer















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_Order

  • Ess_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)







share|improve this answer














share|improve this answer



share|improve this answer








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

















  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

Magento 2 disable Secret Key on URL's from terminal The Next CEO of Stack OverflowMagento 2 Shortcut/GUI tool to perform commandline tasks for windowsIn menu add configuration linkMagento oAuth : Generating access token and access secretMagento 2 security key issue in Third-Party API redirect URIPublic actions in admin controllersHow to Disable Cache in Custom WidgetURL Key not changing in Magento 2Product URL Key gets deleted when importing custom options - Magento 2Problem with reindex terminalMagento 2 - bin/magento Commands not working in Cpanel Terminal

Aasi (pallopeli) Navigointivalikko