![]() |
Re: PO Numbers on Invoices, Searchable in Orders.
Quote:
WHEW! :-) |
Re: PO Numbers on Invoices, Searchable in Orders.
Quote:
Hi....... about to try this on 4.2..... should the routine in #6 be used on this version? All the best |
Re: PO Numbers on Invoices, Searchable in Orders.
Quote:
Most likely it should. This code works on 4.17; if 4.2 doesn't use the variable $query_data on order.php, you may have to modify yours to find out the right array to add the po number to. (We had no luck migrating the whole store to 4.2, so we're sticking to 4.17 for now.) |
Re: PO Numbers on Invoices, Searchable in Orders.
Hi Russell
can confirm that this does work on 4.2.2 with the routine from #6 best regards Adrian |
Re: PO Numbers on Invoices, Searchable in Orders.
Works great. Except a small problem. PO Number field appears on every invoice whether the payment method is Purchase order or any other. Need to show the field on invoice, only if payment method is Purchase Order.
|
Re: PO Numbers on Invoices, Searchable in Orders.
customer/main/order_message.tpl
Code:
{if $order.order.payment_method eq "Purchase Order"}{$order.order.po_number}{/if} mail/html/order_invoice.tpl (used in Print Invoice on Admin) Code:
{if $order.payment_method eq "Purchase Order"}{$order.po_number}{/if} That should give you a general idea of what to do. |
Re: PO Numbers on Invoices, Searchable in Orders.
Thanks.
I changed mail/html/order_invoice.tpl , Code:
<b>{$lng.lbl_po_number}:</b> {$order.po_number}<br /> Code:
{if $order.payment_method eq "Purchase Order"} But this does not display PO Number field even if the payment method is Purchase Order. I don't know what is wrong. |
Re: PO Numbers on Invoices, Searchable in Orders.
Never Mind, It is working now. Thanks for your help.
|
Re: PO Numbers on Invoices, Searchable in Orders.
anytime
|
Re: PO Numbers on Invoices, Searchable in Orders.
Quote:
Hues, did you have to do anything special to get the po_number field to appear? I don't see the variable anywhere in the debug console on the invoice page, and when I view the order, the PO number, company, etc. are all in just big text blob. I've tried variations on {$order.po_number}, without success. Is there some setting to allow this to function as you'd expect? 4.3.2 doesn't seem to like it. |
All times are GMT -8. The time now is 04:20 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.