![]() |
Different invoices for check/mo and credit card payments
I would like to have separate invoices for online payments and check/money order payments.
The second would show a text on the top saying "Please print this invoice and mail it along with your payment to...". I don't want the same text on credit card orders, so I need two different invoices. I tried to modify the template: /skin1/customer/main/order_message.tpl and put an "if" around this line: Code:
<font class="ProductDetails">{$lng.txt_order_placed_msg}</font> Can anyon please tell me how to do this? I've been searching the Forums for about 2 weeks now but no luck so far, I guess if I want to open my store before Christmas I'd better ask... Thanks! |
Re: Different invoices for check/mo and credit card payments
dont know if this will work, but maybe you could play around with it (im sure there is a way to just pass the paymentid to smarty from cart.php but that requires a little more thought)...
in order_message.tpl under the section loop, put Code:
{if $orders[oi].order.payment_method nq 'Credit Card'} |
Re: Different invoices for check/mo and credit card payments
Quote:
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"} 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..... |
Re: Different invoices for check/mo and credit card payments
Quote:
Can you help me how to do this? |
All times are GMT -8. The time now is 10:20 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.