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;








0















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?










share|improve this question






















  • 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

















0















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?










share|improve this question






















  • 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













0












0








0


1






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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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












1 Answer
1






active

oldest

votes


















3














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.






share|improve this answer























  • 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











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



);













draft saved

draft discarded


















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









3














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.






share|improve this answer























  • 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















3














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.






share|improve this answer























  • 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













3












3








3







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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



















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript