| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
PO Numbers on Invoices, Searchable in Orders. | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() Quote:
WHEW! ![]()
__________________
Russell X-cart Version 4.1.9 [linux] |
|||||||
#12
|
|||||||
|
|||||||
![]() Quote:
Hi....... about to try this on 4.2..... should the routine in #6 be used on this version? All the best |
|||||||
#13
|
|||||||
|
|||||||
![]() 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.)
__________________
Russell X-cart Version 4.1.9 [linux] |
|||||||
|
#14
|
|||||||
|
|||||||
![]() Hi Russell
can confirm that this does work on 4.2.2 with the routine from #6 best regards Adrian |
|||||||
#15
|
|||||||
|
|||||||
![]() 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.
__________________
X-Cart 4.4.5 ... www.drugteststrips.com X-Cart 4.4.5 ... www.drugalcoholtest.com Hues Technologies http://www.huestechnologies.com |
|||||||
#16
|
|||||||
|
|||||||
![]() customer/main/order_message.tpl
Code:
mail/html/order_invoice.tpl (used in Print Invoice on Admin) Code:
That should give you a general idea of what to do. |
|||||||
#17
|
|||||||
|
|||||||
![]() Thanks.
I changed mail/html/order_invoice.tpl , Code:
Code:
But this does not display PO Number field even if the payment method is Purchase Order. I don't know what is wrong.
__________________
X-Cart 4.4.5 ... www.drugteststrips.com X-Cart 4.4.5 ... www.drugalcoholtest.com Hues Technologies http://www.huestechnologies.com |
|||||||
#18
|
|||||||
|
|||||||
![]() Never Mind, It is working now. Thanks for your help.
__________________
X-Cart 4.4.5 ... www.drugteststrips.com X-Cart 4.4.5 ... www.drugalcoholtest.com Hues Technologies http://www.huestechnologies.com |
|||||||
#19
|
|||||||
|
|||||||
![]() anytime
|
|||||||
#20
|
|||||||
|
|||||||
![]() 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.
__________________
v4.3.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|