Hello,
I am working on a custom notification email which will be sent out after the customer makes a payment on a Layaway order. In order to get most applicable information to display for the customers, I would like to know if there and any variables which can be used to call Date of last payment, amount of last payment, total cost of order, and the remaining balance. Also, I would also like to display to them theyre deadline, which is 6 months from the date of purchase, to have paid the amount in full.
Ideally, it would look something like:
"
CustomerName,
thank you for your payment of (X) on (DATE of Payment). This leaves you with a balance of (BALANCE) of the Total cost: (TOTALCOST).
We would also like to remind you that this balance must be paid in full by (6 MONTHS FROM ORDER DATE).
Thank you,
(STORENAME)
"
Any assistance with this is greatly appreciated.
Custom Notification Email
- hassonmike
- Lieutenant (LT)
- Posts: 76
- Joined: Tue Apr 19, 2011 2:13 pm
- Contact:
Re: Custom Notification Email
It will be something like this.
Code: Select all
$user.FullName,
thank you for your payment of $order.Payments.LastPayment.Amount.ToString("ulc") on $order.Payments.LastPayment.PaymentDate.ToShortDateString(). This leaves you with a balance of $order.Payments.TotalUnprocessed().ToString("ulc") of the Total cost: $order.TotalCharges.ToString("ulc").
We would also like to remind you that this balance must be paid in full by $order.OrderDate.AddMonths(6).ToShortDateString().
Thank you,
$store.Name
- hassonmike
- Lieutenant (LT)
- Posts: 76
- Joined: Tue Apr 19, 2011 2:13 pm
- Contact:
Re: Custom Notification Email
Thank you very much, this is a huge help!
But I did notice that with "This leaves you with a balance of $order.Payments.TotalUnprocessed().ToString("ulc")", this shows the same amount of payment that was made, before it has been captured. If we capture the payment, and resend the email, it will show $order.Payments.TotalUnprocessed().ToString("ulc") to be $0.00
But I did notice that with "This leaves you with a balance of $order.Payments.TotalUnprocessed().ToString("ulc")", this shows the same amount of payment that was made, before it has been captured. If we capture the payment, and resend the email, it will show $order.Payments.TotalUnprocessed().ToString("ulc") to be $0.00
- hassonmike
- Lieutenant (LT)
- Posts: 76
- Joined: Tue Apr 19, 2011 2:13 pm
- Contact:
Re: Custom Notification Email
I found the variable I was looking for - I changed the code for the balance to: $order.GetBalance().ToString("ulc")