Django Oscar - email admin on order placeddjango oscar: How to send an email to store admin for order placement notificationGetting Django admin url for an objectDoes Django scale?How to send email via Django?Separation of business logic and data access in djangoFiltering Objects in a View in Django - Oscar?Add extra context variables into django oscar emailsIntegrating a payment gateway with Django-Oscar?django oscar: How to send an email to store admin for order placement notificationUse Django Oscar SignalsDjango Oscar user verification email
Mage Armor with Defense fighting style (for Adventurers League bladeslinger)
Modeling an IPv4 Address
What are the differences between the usage of 'it' and 'they'?
Why did Neo believe he could trust the machine when he asked for peace?
Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?
Prove that NP is closed under karp reduction?
What would happen to a modern skyscraper if it rains micro blackholes?
TGV timetables / schedules?
Fencing style for blades that can attack from a distance
Is it legal for company to use my work email to pretend I still work there?
How to find program name(s) of an installed package?
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
What do you call a Matrix-like slowdown and camera movement effect?
Is it possible to do 50 km distance without any previous training?
Writing rule stating superpower from different root cause is bad writing
Why do falling prices hurt debtors?
The use of multiple foreign keys on same column in SQL Server
How old can references or sources in a thesis be?
What does "Puller Prush Person" mean?
Adding span tags within wp_list_pages list items
A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?
What is the word for reserving something for yourself before others do?
What is the offset in a seaplane's hull?
Why do I get two different answers for this counting problem?
Django Oscar - email admin on order placed
django oscar: How to send an email to store admin for order placement notificationGetting Django admin url for an objectDoes Django scale?How to send email via Django?Separation of business logic and data access in djangoFiltering Objects in a View in Django - Oscar?Add extra context variables into django oscar emailsIntegrating a payment gateway with Django-Oscar?django oscar: How to send an email to store admin for order placement notificationUse Django Oscar SignalsDjango Oscar user verification email
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am trying to get django-oscar to send me an email everytime an order is placed. It sounds simple but I am struggling.
I have tried a couple of methods but all failed...
Is there an easy way?
python django django-oscar
add a comment |
I am trying to get django-oscar to send me an email everytime an order is placed. It sounds simple but I am struggling.
I have tried a couple of methods but all failed...
Is there an easy way?
python django django-oscar
You may have better luck of getting a quick answer if you provide a few of those ways that you've attempted and why they failed rather than requesting the solution to a relatively open ended question.
– schillingt
Mar 22 at 1:28
add a comment |
I am trying to get django-oscar to send me an email everytime an order is placed. It sounds simple but I am struggling.
I have tried a couple of methods but all failed...
Is there an easy way?
python django django-oscar
I am trying to get django-oscar to send me an email everytime an order is placed. It sounds simple but I am struggling.
I have tried a couple of methods but all failed...
Is there an easy way?
python django django-oscar
python django django-oscar
asked Mar 21 at 23:46
Hyun Kyu HanHyun Kyu Han
2316
2316
You may have better luck of getting a quick answer if you provide a few of those ways that you've attempted and why they failed rather than requesting the solution to a relatively open ended question.
– schillingt
Mar 22 at 1:28
add a comment |
You may have better luck of getting a quick answer if you provide a few of those ways that you've attempted and why they failed rather than requesting the solution to a relatively open ended question.
– schillingt
Mar 22 at 1:28
You may have better luck of getting a quick answer if you provide a few of those ways that you've attempted and why they failed rather than requesting the solution to a relatively open ended question.
– schillingt
Mar 22 at 1:28
You may have better luck of getting a quick answer if you provide a few of those ways that you've attempted and why they failed rather than requesting the solution to a relatively open ended question.
– schillingt
Mar 22 at 1:28
add a comment |
1 Answer
1
active
oldest
votes
You can set up a listener for the order_placed
signal, and then do whatever actions you want there.
from django.dispatch import receiver
from oscar.apps.order.signals import order_placed
@receiver(order_placed)
def send_merchant_notification(sender, order, user, **kwargs):
# Do stuff here
Alternatively, fork the orders
app and override the OrderCreator
class to inject additional logic when an order is placed.
For the alternative method specified in this answer you can take a look to this link (stackoverflow.com/questions/37089210/…) on how to implement it.
– Sammy J
Mar 22 at 9:41
Wow! all I had to do was to put that code into signals.py in orders app and write emailmessage and now I am getting the email when orders are received. Thank you!
– Hyun Kyu Han
Mar 23 at 0:04
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2fstackoverflow.com%2fquestions%2f55290850%2fdjango-oscar-email-admin-on-order-placed%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can set up a listener for the order_placed
signal, and then do whatever actions you want there.
from django.dispatch import receiver
from oscar.apps.order.signals import order_placed
@receiver(order_placed)
def send_merchant_notification(sender, order, user, **kwargs):
# Do stuff here
Alternatively, fork the orders
app and override the OrderCreator
class to inject additional logic when an order is placed.
For the alternative method specified in this answer you can take a look to this link (stackoverflow.com/questions/37089210/…) on how to implement it.
– Sammy J
Mar 22 at 9:41
Wow! all I had to do was to put that code into signals.py in orders app and write emailmessage and now I am getting the email when orders are received. Thank you!
– Hyun Kyu Han
Mar 23 at 0:04
add a comment |
You can set up a listener for the order_placed
signal, and then do whatever actions you want there.
from django.dispatch import receiver
from oscar.apps.order.signals import order_placed
@receiver(order_placed)
def send_merchant_notification(sender, order, user, **kwargs):
# Do stuff here
Alternatively, fork the orders
app and override the OrderCreator
class to inject additional logic when an order is placed.
For the alternative method specified in this answer you can take a look to this link (stackoverflow.com/questions/37089210/…) on how to implement it.
– Sammy J
Mar 22 at 9:41
Wow! all I had to do was to put that code into signals.py in orders app and write emailmessage and now I am getting the email when orders are received. Thank you!
– Hyun Kyu Han
Mar 23 at 0:04
add a comment |
You can set up a listener for the order_placed
signal, and then do whatever actions you want there.
from django.dispatch import receiver
from oscar.apps.order.signals import order_placed
@receiver(order_placed)
def send_merchant_notification(sender, order, user, **kwargs):
# Do stuff here
Alternatively, fork the orders
app and override the OrderCreator
class to inject additional logic when an order is placed.
You can set up a listener for the order_placed
signal, and then do whatever actions you want there.
from django.dispatch import receiver
from oscar.apps.order.signals import order_placed
@receiver(order_placed)
def send_merchant_notification(sender, order, user, **kwargs):
# Do stuff here
Alternatively, fork the orders
app and override the OrderCreator
class to inject additional logic when an order is placed.
answered Mar 22 at 2:48
solarissmokesolarissmoke
16.2k83545
16.2k83545
For the alternative method specified in this answer you can take a look to this link (stackoverflow.com/questions/37089210/…) on how to implement it.
– Sammy J
Mar 22 at 9:41
Wow! all I had to do was to put that code into signals.py in orders app and write emailmessage and now I am getting the email when orders are received. Thank you!
– Hyun Kyu Han
Mar 23 at 0:04
add a comment |
For the alternative method specified in this answer you can take a look to this link (stackoverflow.com/questions/37089210/…) on how to implement it.
– Sammy J
Mar 22 at 9:41
Wow! all I had to do was to put that code into signals.py in orders app and write emailmessage and now I am getting the email when orders are received. Thank you!
– Hyun Kyu Han
Mar 23 at 0:04
For the alternative method specified in this answer you can take a look to this link (stackoverflow.com/questions/37089210/…) on how to implement it.
– Sammy J
Mar 22 at 9:41
For the alternative method specified in this answer you can take a look to this link (stackoverflow.com/questions/37089210/…) on how to implement it.
– Sammy J
Mar 22 at 9:41
Wow! all I had to do was to put that code into signals.py in orders app and write emailmessage and now I am getting the email when orders are received. Thank you!
– Hyun Kyu Han
Mar 23 at 0:04
Wow! all I had to do was to put that code into signals.py in orders app and write emailmessage and now I am getting the email when orders are received. Thank you!
– Hyun Kyu Han
Mar 23 at 0:04
add a comment |
Thanks for contributing an answer to Stack Overflow!
- 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%2fstackoverflow.com%2fquestions%2f55290850%2fdjango-oscar-email-admin-on-order-placed%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
You may have better luck of getting a quick answer if you provide a few of those ways that you've attempted and why they failed rather than requesting the solution to a relatively open ended question.
– schillingt
Mar 22 at 1:28