Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreSending a mail with some codes after the paymentSending a mail with some codes after the payment
Previous
 
Next
New Post
2/14/2008 8:09 AM
 

Hello everybody,

I use store module and I need to do the following change: 

after the user have chosen the products, and after the payment succeeded, I need to send a mail to the user with some codes (I generate these codes through an external application). Is it possible? How can I do this? 

Thanks! 

 
New Post
2/14/2008 10:00 AM
 

Hi DeVen,

If you need an automatic system, you have to modify to code and loose compatibility with future versions. I think it's more simple to do it by hand. When a user pay is order (in fact every times the order status change) you both (user and store admin) receive an email.

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
2/14/2008 10:37 AM
 

Hi Gilles,

and thank for your fast reply, you always reply in all threads, thanks!

I have some questions:

  1. Which are the possible status? You write that each time the status changes a mail is sent to the user and to the store admin. 
    What differences there are in the mails related to the various status?
  2. The code I have to modify is that contained in PaymentControlBase.cs?
    The mail created and sent with this code is sent only in case of Email provider or also in case of PayPal provider? And it is sent after a successfull payment?
  3. With "do it by hand" what do you mean?

Thanks!

 
New Post
2/15/2008 10:27 AM
 

Hi,

You'r welcome, I try to offert a good support. Sometimes a "simple" question took a lot of time for give a detailled response.

There is seven order status: Awaiting Payment, Paid, Processing, Awaiting Stock, Packing, Dispatched, Cancelled. When an order is placed, the same email is sent  to the store administrator and to the customer. Only the email subject is different and the order status is set to Processing. This one is sent by the method generateOrderConfirmation() inside PaymentControlBase.cs and look like this:

Thank you for placing an order with [StoreName].

Please find below an order number and a summary of your order.  You can check the status of your order at any time by logging into our site and clicking the "[StoreAccountTabName]" link. If you have any questions about your order, please feel free to contact us at [AdminStoreEmail], or simply reply to this message.

Order Number: [OrderNumber]
Order Date: [OrderDate]

Order Contents

[Quantity] x [ModelName] @ [UnitPrice] << 1 line by product

Sub-Total: [OrderTotal]
Shipping & Handling: [ShippingCost]
Tax: [Tax]
Total: [GrandTotal]

Billing Address:

[BillingAddress]

Shipping To:

[ShippingAddress]

This invoice is subject to our terms of use.

If, for whatever reason, your order cannot be processed, then one of our customer services representatives will contact you shortly.

Once again, thank you for your order.

http://[HTTPPortalAlias]

Now, it depends of the gateway provider used and if the provider callback the store. If you use the Email provider, then you have to write an email to the customer for payment instuctions or change to order status to Awaiting Payment (Store Admin module > Orders > Select the corresponding order by his order number > Change his status and Save). Alternatively, if you want add this instructions to the preceding email, you can edit the email resources (OrderTermsOfUse, OrderCannotBeProcessed, OrderThanks) used for create the email footer. For doing that, use the standard DNN Lanuage Editor (Host > Language > Language Editor), look inside Local Resources > DesktopModules > Store. If you use PayPal or Authorize provider, normaly the web site payment must callback the store after the transaction. If the payment succeed, then the order status is changed to Paid and the second email is sent to the store administrator and to the customer. This other one is sent by the method SendOrderStatusChangeEmail inside CustomerOrder.ascx.cs and look like this:

You recently placed an order with [StoreName]

This order ([OrderNumber]) has changed status to "[OrderStatus]".

If the order require payment
IMPORTANT: Your order now requires payment. You can make a secure online payment via PayPal (using a credit/debit card or your PayPal account) by logging into our site and clicking "[StoreAccountTabName]" followed by "[OrderHistoryTitle]". If you wish to pay via a method other than PayPal, or would like to cancel your order, please contact us at [AdminStoreEmail], or simply reply to this message.
Otherwise
If you have any questions about this change, please feel free to contact us at [AdminStoreEmail], or simply reply to this message.

You can check the status of your order at any time by logging in to our site and clicking the [StoreAccountTabName] link.

Once again, thank you for your order.

http://[HTTPPortalAlias]

This email content can be changed too with the Language Editor.

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
2/28/2008 9:27 AM
 

Thank you very much Gilles for your explanation! 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreSending a mail with some codes after the paymentSending a mail with some codes after the payment


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out