View Single Post
  #4  
Old 09-07-2009, 03:53 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Different invoices for check/mo and credit card payments

Quote:
Originally Posted by stanlee
Thanks for the reply. Unfortunately it doesn't work.
I replaced the "nq" in the above with "ne" ("nq" turned my location bar into bread crumbs).
The payment method variable simply doesn't get to the order_message.tpl
It's strange, because it works in order_invoice.tpl which is on the same page
below the message, and it's called from the order message template.

I finally gave up on order_message.tpl, and modified the order_invoice.tpl instead, it works fine with this:
Code:
{if $order.payment_method eq "Purchase Order"} print purchase order text {elseif $order.payment_method eq "Check / Money Order"} print check / money order text {/if} no message needed for credit card or paypal payments.

The invoice page needed some editing anyway, and now my problem is solved. It's been bugging me for a long time.
I'm still wondering why it could not be done in order_message.tpl.....

Can you help me how to do this?
__________________
4.6.1 Platinum


Reply With Quote