How to save data in custom table and then send that data in order email in magento 2?Magento 2 : Notice Error...
Why doesn't using two cd commands in bash script execute the second command?
Is it true that real estate prices mainly go up?
Does this property of comaximal ideals always holds?
Dot in front of file
2D counterpart of std::array in C++17
Can anyone tell me why this program fails?
Importance of differentiation
Rules about breaking the rules. How do I do it well?
Why are the outputs of printf and std::cout different
Why did it take so long to abandon sail after steamships were demonstrated?
Is having access to past exams cheating and, if yes, could it be proven just by a good grade?
Provisioning profile doesn't include the application-identifier and keychain-access-groups entitlements
Is it possible to upcast ritual spells?
Should we release the security issues we found in our product as CVE or we can just update those on weekly release notes?
How to generate globally unique ids for different tables of the same database?
An Accountant Seeks the Help of a Mathematician
Informing my boss about remarks from a nasty colleague
Employee lack of ownership
Who is our nearest planetary neighbor, on average?
Theorems like the Lovász Local Lemma?
Will a pinhole camera work with instant film?
It's a yearly task, alright
Latest web browser compatible with Windows 98
Replacing Windows 7 security updates with anti-virus?
How to save data in custom table and then send that data in order email in magento 2?
Magento 2 : Notice Error - Array to String conversionFrequently Bought Together Products tab issueHow to get data from custom table and display it in page in Admin Panel?Show and save Telephone field on registration page Magento 2The type definition 'string', specified by xsi:type, is blocked or not validly derived from the type definition of the element declaration in magento2How to merge name : value pairs in JavascriptHow can we get stock data in product listing via afterGetList plugin in Magento 2.2.3Magento 2.2.3 Backend Admin Save.php Where Gird/Form Is a join tabledisplay all customers using console command magento2.2.3No such entity for customer grid magento2
Anyone can please help me how to save data in a custom table after successful order and send saved data in order email.
Thanks.
magento2 magento2.2.3
New contributor
add a comment |
Anyone can please help me how to save data in a custom table after successful order and send saved data in order email.
Thanks.
magento2 magento2.2.3
New contributor
add a comment |
Anyone can please help me how to save data in a custom table after successful order and send saved data in order email.
Thanks.
magento2 magento2.2.3
New contributor
Anyone can please help me how to save data in a custom table after successful order and send saved data in order email.
Thanks.
magento2 magento2.2.3
magento2 magento2.2.3
New contributor
New contributor
edited 3 mins ago
Prince
New contributor
asked 8 mins ago
PrincePrince
1
1
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
you can use the event checkout_onepage_controller_success_action
at Namespacemoduleetcfrontendevents.xml
:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="checkout_onepage_controller_success_action">
<observer name="mymodule_controller_success_action" instance="NamespaceModuleObserverMyObserver" />
</event>
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
});
}
});
Prince is a new contributor. Be nice, and check out our Code of Conduct.
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%2f266032%2fhow-to-save-data-in-custom-table-and-then-send-that-data-in-order-email-in-magen%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 use the event checkout_onepage_controller_success_action
at Namespacemoduleetcfrontendevents.xml
:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="checkout_onepage_controller_success_action">
<observer name="mymodule_controller_success_action" instance="NamespaceModuleObserverMyObserver" />
</event>
add a comment |
you can use the event checkout_onepage_controller_success_action
at Namespacemoduleetcfrontendevents.xml
:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="checkout_onepage_controller_success_action">
<observer name="mymodule_controller_success_action" instance="NamespaceModuleObserverMyObserver" />
</event>
add a comment |
you can use the event checkout_onepage_controller_success_action
at Namespacemoduleetcfrontendevents.xml
:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="checkout_onepage_controller_success_action">
<observer name="mymodule_controller_success_action" instance="NamespaceModuleObserverMyObserver" />
</event>
you can use the event checkout_onepage_controller_success_action
at Namespacemoduleetcfrontendevents.xml
:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="checkout_onepage_controller_success_action">
<observer name="mymodule_controller_success_action" instance="NamespaceModuleObserverMyObserver" />
</event>
answered 54 secs ago
Ronak RathodRonak Rathod
40010
40010
add a comment |
add a comment |
Prince is a new contributor. Be nice, and check out our Code of Conduct.
Prince is a new contributor. Be nice, and check out our Code of Conduct.
Prince is a new contributor. Be nice, and check out our Code of Conduct.
Prince is a new contributor. Be nice, and check out our Code of Conduct.
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%2f266032%2fhow-to-save-data-in-custom-table-and-then-send-that-data-in-order-email-in-magen%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