- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018
04:33 AM
08-22-2018
04:33 AM
How can I disable Magento 2 transaction emails only for customers based in specific locations?
How I can disable Magento 2 transaction emails only for customers based in specific locations?
ie: we only want UK based customers receive automatic transaction emails.
Thanks!
Labels:
6 REPLIES 6
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018
05:02 AM
08-22-2018
05:02 AM
Re: How can I disable Magento 2 transaction emails only for customers based in specific locations?
Hello @rivki_stoll
how can you identify which email id from which location?
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018
05:42 AM
08-22-2018
05:42 AM
Re: How can I disable Magento 2 transaction emails only for customers based in specific locations?
Hi,
Thanks for your reply.
Possibly based on the order billing/shipping info.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018
06:02 AM
08-22-2018
06:02 AM
Re: How can I disable Magento 2 transaction emails only for customers based in specific locations?
Hello @rivki_stoll
do you just want to for order email ? or all email?
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018
06:28 AM
08-22-2018
06:28 AM
Re: How can I disable Magento 2 transaction emails only for customers based in specific locations?
@Sunil Patel only for the order emails.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018
06:43 AM
08-22-2018
06:43 AM
Re: How can I disable Magento 2 transaction emails only for customers based in specific locations?
Hello @rivki_stoll
magento/module-quote/Model/QuoteManagement.php
protected function submitQuote(QuoteEntity $quote, $orderData = []) { ................. ............ // your logic $order->setBillingAddress($billingAddress); $order->setCanSendNewEmailFlag(false); // email logic ..................... }
hope it will help you.
if works then mark as solution
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018
06:48 AM
08-22-2018
06:48 AM
Re: How can I disable Magento 2 transaction emails only for customers based in specific locations?
@Sunil Patel thanks! I will let you know.