Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

PO Numbers on Invoices, Searchable in Orders.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 03-02-2009, 03:23 PM
 
Berto Berto is offline
 

Member
  
Join Date: Mar 2007
Posts: 19
 

Default Re: PO Numbers on Invoices, Searchable in Orders.

Quote:
Originally Posted by GreatLakesVacuum
Nevermind, I screwed up a step, it works fine!

WHEW!
__________________
Russell
X-cart Version 4.1.9 [linux]
Reply With Quote
  #12  
Old 08-26-2009, 11:07 AM
 
adriant adriant is offline
 

Senior Member
  
Join Date: May 2006
Posts: 190
 

Default Re: PO Numbers on Invoices, Searchable in Orders.

Quote:
Originally Posted by GreatLakesVacuum
Nevermind, I screwed up a step, it works fine!

Hi....... about to try this on 4.2..... should the routine in #6 be used on this version?

All the best
__________________
Xcart gold Plus V4.7.12
REBoot(REdux)

https://www.serpro.co.uk
Reply With Quote
  #13  
Old 08-26-2009, 12:07 PM
 
Berto Berto is offline
 

Member
  
Join Date: Mar 2007
Posts: 19
 

Default Re: PO Numbers on Invoices, Searchable in Orders.

Quote:
Originally Posted by adriant
Hi....... about to try this on 4.2..... should the routine in #6 be used on this version?

All the best


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]
Reply With Quote

The following user thanks Berto for this useful post:
adriant (08-27-2009)
  #14  
Old 08-27-2009, 01:30 AM
 
adriant adriant is offline
 

Senior Member
  
Join Date: May 2006
Posts: 190
 

Default 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
__________________
Xcart gold Plus V4.7.12
REBoot(REdux)

https://www.serpro.co.uk
Reply With Quote
  #15  
Old 09-08-2010, 04:07 AM
 
hues hues is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 90
 

Default 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.
__________________
X-Cart 4.4.5 ... www.drugteststrips.com
X-Cart 4.4.5 ... www.drugalcoholtest.com

Hues Technologies
http://www.huestechnologies.com
Reply With Quote
  #16  
Old 09-08-2010, 04:50 AM
 
exsecror exsecror is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,284
 

Default 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.
Reply With Quote
  #17  
Old 09-08-2010, 05:21 AM
 
hues hues is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 90
 

Default 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 />
to
Code:
{if $order.payment_method eq "Purchase Order"} <b>{$lng.lbl_po_number}:</b> {$order.po_number}<br /> {/if}

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
Reply With Quote
  #18  
Old 09-08-2010, 05:25 AM
 
hues hues is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 90
 

Default Re: PO Numbers on Invoices, Searchable in Orders.

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
Reply With Quote
  #19  
Old 09-08-2010, 06:04 AM
 
exsecror exsecror is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,284
 

Default Re: PO Numbers on Invoices, Searchable in Orders.

anytime
Reply With Quote
  #20  
Old 10-07-2010, 07:59 PM
 
vllo vllo is offline
 

Newbie
  
Join Date: Jun 2010
Posts: 4
 

Default Re: PO Numbers on Invoices, Searchable in Orders.

Quote:
Originally Posted by hues
Never Mind, It is working now. Thanks for your help.

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:44 AM.

   

 
X-Cart forums © 2001-2020