Payment Method not showing on Order Confirmation

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
mfreeze
Commodore (COMO)
Commodore (COMO)
Posts: 421
Joined: Mon Jan 24, 2005 2:07 pm
Location: Washington, NJ
Contact:

Payment Method not showing on Order Confirmation

Post by mfreeze » Fri Nov 12, 2010 12:56 pm

I noticed this in 7.0.5 but checked other releases and it is happening there also. On the order confirmation email there is a entry for Payment Method but it always seems to be blank. The code in the default template is

Code: Select all

<td class="Email" width="50%">
<strong>Payment Method:</strong>
<div style="padding-left:30px;">
#foreach($payment in $payments)
$payment.PaymentMethodName<br />
$payment.ReferenceNumber<br />
#end
</div>
</td>
The Payment method shows in the admin under payments and on vieworder.aspx. Why would it not be showing in the email?
Mary E Freeze

Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development

http://www.ffgraphics.com

tester
Ensign (ENS)
Ensign (ENS)
Posts: 1
Joined: Fri Oct 15, 2010 5:00 am

Re: Payment Method not showing on Order Confirmation

Post by tester » Tue Dec 07, 2010 1:10 am

Any comments?

User avatar
s_ismail
Commander (CMDR)
Commander (CMDR)
Posts: 162
Joined: Mon Nov 09, 2009 12:20 am
Contact:

Re: Payment Method not showing on Order Confirmation

Post by s_ismail » Wed Dec 08, 2010 5:53 am

Which payment gateway you are using?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Payment Method not showing on Order Confirmation

Post by mazhar » Wed Dec 08, 2010 6:37 am

Most probably in this case order is placed via Google Checkout. Seems like our order notification Email gets triggered before we this name information is initialized causing this issue. There doesn't seems to be any simple workaround for this. The only thing that I could think is to don't include payment method name information when its null or empty. For example by doing something like

Code: Select all

#if($payments.Count > 0)

<strong>Payment Method:</strong>
<div style="padding-left:30px;">
#foreach($payment in $payments)
$payment.PaymentMethodName<br />
$payment.ReferenceNumber<br />
#end
</div>

#end

Post Reply