Developer forum

Forum » Templates » Implement 'Email Order' from Order Details page

Implement 'Email Order' from Order Details page

Conor McKeown
Conor McKeown
Reply

Is there a way in Dynamicweb to implement an 'Email Order' feature from the Order Details page and the Order Receipt page?

 

 


Replies

 
Nicolai Pedersen
Reply

Hi Conor

Long time, no see!

Do you mean from the frontend? And what should it do the "Email order" feature? A little more explanation would help.

Thanks for clarifying.

Nicolai

 
Conor McKeown
Conor McKeown
Reply

Hi Nicolai,

Yes, it's been too long. I missed the trip to Denmark this year due to a wedding. Next year I look forward to a visiting DK.

Sorry for lack of detail. My question is related to the frontend. When a user finishes checking out and is on the Order Receipt or Order Confirmation page, there is a button there beside the 'Print Order' button that allows the user to email the order to someone else.

Let me know if that explains it.

Conor

 
Nicolai Pedersen
Reply

Hi Conor

Yes, I now understand - sorry for my latency :-).

It is not a built-in feature directly in the cart receipt page. But it should be possible to use the customer center if the user is logged in. It has a "resend" feature that takes an argument that can specify the emails that should receive the email:

/customercenter?cc=resend&Addresses=some@domain.com:someother@domain.com

Hope this will be useful.

BR Nicolai

 
Nicolai Pedersen
Reply

oops, like this:

/customercenter?cc=resend&Addresses=some@domain.com:someother@domain.com&OrderID=order123

And yes - the delimiter for emails is : which is really weird...

 
cmc@dynamicwebusa. com McKeown
cmc@dynamicwebusa. com McKeown
Reply

Works nicely, thanks Nicolai.

 

You must be logged in to post in the forum