cancel
Showing results for 
Search instead for 
Did you mean: 

Send Email & Create Order programmatically on Product page with Custom form

SOLVED

Send Email & Create Order programmatically on Product page with Custom form

When customer enters the details in the form fields and enter submit button then the Order email should send customer's email immediately and also Order should be created in Backend as well. Once its submitted(After email sent & order created), the success message will display on same current product page.

 

For this, I haved added my Custom order form on my theme's product detailed page. Form contains the fields like Name, Email, Quantity, Product Name and Price(Current Product Name & Price when customer Visits).

 

How to send email and create order programmatically on Product page custom form?

 

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Send Email & Create Order programmatically on Product page with Custom form

Hello @mesk123

 

please check below link

 

https://webkul.com/blog/create-quote-and-order-programmatically-in-magento2/

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

View solution in original post

Re: Send Email & Create Order programmatically on Product page with Custom form

You can refer below link for Create Order and send email in magento 2,

http://www.rakeshjesadiya.com/how-to-create-order-programmatically-in-magento-2/

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

View solution in original post

5 REPLIES 5

Re: Send Email & Create Order programmatically on Product page with Custom form

Hello @mesk123

 

Check Magento default purchase order functionality, it will help to understand that thing

 

If you want to use own controller then check below link

 

https://webkul.com/blog/programmatically-create-order-magento/

 

hope it will help you.

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Send Email & Create Order programmatically on Product page with Custom form

Hi,

I am asking this for Magento 2.

Re: Send Email & Create Order programmatically on Product page with Custom form

Hello @mesk123

 

please check below link

 

https://webkul.com/blog/create-quote-and-order-programmatically-in-magento2/

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Send Email & Create Order programmatically on Product page with Custom form

You can refer below link for Create Order and send email in magento 2,

http://www.rakeshjesadiya.com/how-to-create-order-programmatically-in-magento-2/

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Send Email & Create Order programmatically on Product page with Custom form

Read this blog to know how to sent Magento 2 email programmatically https://ext-5487952.livejournal.com/1433.html

Trusted Magento 2 Extensions