Order confirmation emails


https://forum.kartris.com/Topic1222.aspx
Print Topic | Close Window

By TheCalicoTree - Tue 16 Aug 2011
I have just started testing the order process and the emails I am receiving both as customer and vendor are only displaying the folliwing.

Order from Kartris (#7)

 

The following order was placed at your store:

 

Order Number: 7

Order Number: 7

I was expecting to see a list of items at the very least. Do I need to change a template somewhere?

Thanks
By Paul - Wed 17 Aug 2011
I think the code responsible is in Checkout.aspx.vb (line 816-825):

If clsPlugin.GatewayName.ToLower = "po_offlinepayment" Then
    strCallBodyText += GetGlobalResourceObject("Kartris", "ContentText_OrderNumber") & ": " & O_ID & vbCrLf & vbCrLf
    strCallBodyText += GetGlobalResourceObject("Kartris", "FormLabel_EmailAddress") & ": " & objOrder.CustomerEmail & vbCrLf & vbCrLf
    If Not String.IsNullOrEmpty(UC_KartrisLogin.UserPassword) Then
        strCallBodyText += GetGlobalResourceObject("Kartris", "ContentText_CustomerCode") & ": " & UC_KartrisLogin.UserPassword
    End If
Else
    strCallBodyText = CStr(tblOrder.Rows(0)("O_Details"))
End If


I'm not sure why this is set differently for PO (purchase order, orders without payment where payment would be made separately offline).

Can you try replacing the whole section with just this:

strCallBodyText = CStr(tblOrder.Rows(0)("O_Details"))


This should I think treat PO orders like any other, and put full order details.

I have a feeling the intention might have been to distinguish PO orders from those where payment is actually made online, since one might not want to dispatch a PO order immediately if the expectation is for a customer to call to make payment for example. But I think it would be better served perhaps with a clear indication at the top of the mail [PO ORDER, NO PAYMENT MADE ONLINE] or similar.

Any feedback appreciated...
By TheCalicoTree - Wed 17 Aug 2011
Great, this has done the trick. Was line 775-784 but I'm guessing that is because I have not run the latest upgrade?

As this code effects both the customer and vendor email I would suggest a change to the code so that the customer is always emailed details.  It makes sense for the vendor to know the full details too so perhaps a header or email subject clearly stating the PO status of the order.

Thanks for your help
By Paul - Thu 18 Aug 2011
Yes, that makes perfect sense... I'll log a task for this.