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

Displaying Purchase Number on Invoice

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-07-2006, 01:27 PM
 
Krystchris Krystchris is offline
 

Member
  
Join Date: Mar 2005
Posts: 15
 

Default Displaying Purchase Order Number on Invoice

I'm hoping someone can help me out. I've been looking through the forum looking to modify the Order Invoice page and just haven't found what I'm needing. I have a 2 part question.

1.) We are starting to offer Purchase Orders, but on the invoice it only says,

Payment Method:
Purchase Order

How can I get it to say,

Payment Method:
Purchase Order
PO#xxxxxxxxxx (or what ever they put in as the number)?

2.) Is it possible to add customer type to the Order Invoice?

Thank you for any help you can give me.
__________________
When in doubt...Kick it.

xcart Version 4.0.18
Reply With Quote
  #2  
Old 09-11-2006, 06:42 AM
 
Krystchris Krystchris is offline
 

Member
  
Join Date: Mar 2005
Posts: 15
 

Default Re: Displaying Purchase Number on Invoice

Is it possible to add the PO number to the invoice?

-C
__________________
When in doubt...Kick it.

xcart Version 4.0.18
Reply With Quote
  #3  
Old 09-11-2006, 09:11 AM
 
Krystchris Krystchris is offline
 

Member
  
Join Date: Mar 2005
Posts: 15
 

Default Re: Displaying Purchase Number on Invoice

Is there a particular database to look in. I've searched our x-cart database... but I have had difficuly finding a reference.

-C
__________________
When in doubt...Kick it.

xcart Version 4.0.18
Reply With Quote
  #4  
Old 09-11-2006, 11:59 AM
 
jdiehl jdiehl is offline
 

eXpert
  
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 270
 

Default Re: Displaying Purchase Number on Invoice

There is not really a way to include a PO number by default. You could add it by adding a field in the additional fields section of the customer info, but that won't work for repeat business. Looks like you should look into the custom mods section of the forum, or look into getting something programmed.
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/
Reply With Quote
  #5  
Old 01-26-2007, 02:35 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Displaying Purchase Number on Invoice

Code for skin1/mail/html/order_invoice.tpl

Code:
{if $order.payment_method eq "Purchase Order"} {php} $wcmPurchaseOrder = $GLOBALS['smarty']->_tpl_vars['order']['details']; $wcmPurchaseOrder = explode("\n",$wcmPurchaseOrder); $wcmPurchaseOrder = $wcmPurchaseOrder[0]; $wcmPurchaseOrder = explode(" ",$wcmPurchaseOrder); echo "<b>" . $wcmPurchaseOrder[0] . " " . $wcmPurchaseOrder[1] . " </b>" . $wcmPurchaseOrder[2]; {/php}

Reply With Quote
  #6  
Old 04-02-2007, 05:42 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Displaying Purchase Number on Invoice

Quote:
Originally Posted by Jon
Code for skin1/mail/html/order_invoice.tpl

Code:
{if $order.payment_method eq "Purchase Order"} {php} $wcmPurchaseOrder = $GLOBALS['smarty']->_tpl_vars['order']['details']; $wcmPurchaseOrder = explode("\n",$wcmPurchaseOrder); $wcmPurchaseOrder = $wcmPurchaseOrder[0]; $wcmPurchaseOrder = explode(" ",$wcmPurchaseOrder); echo "<b>" . $wcmPurchaseOrder[0] . " " . $wcmPurchaseOrder[1] . " </b>" . $wcmPurchaseOrder[2]; {/php}


Does this method work in version 4.1.3 ?

Thanks

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #7  
Old 09-17-2007, 01:28 PM
 
jerrym jerrym is offline
 

Member
  
Join Date: Apr 2007
Posts: 10
 

Default Re: Displaying Purchase Number on Invoice

I put the code in and it works fine on the invoice that shows on the screen, but the purchase order number doesn't show in the emailed invoices the system sends to the customer. Any suggestions on how to fix this?

4.1.8
__________________
Version 4.1.8
Reply With Quote
  #8  
Old 01-14-2008, 05:40 PM
 
sk8conz sk8conz is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 31
 

Default Re: Displaying Purchase Number on Invoice

Came across this (old) thread as I also wanted to display the purchase order number in the email message.

The method given embeds php code which means it displays online but not in the email message as the php code output isn't captured.

The following code is all in smarty and works for both onscreen and email

Code:
{if $order.payment_method eq "Purchase Order" and $order.details ne ""} {foreach from="\n"|explode:$order.details item=i name=foo} {assign var=pordstuff value = $i} {if $smarty.foreach.foo.iteration eq 1} <b> {$pordstuff}</b><br /> {/if} {/foreach} {/if}
__________________
4.3.1
rounded white template
one page checkout
Reply With Quote
  #9  
Old 02-20-2009, 12:05 PM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Default Re: Displaying Purchase Number on Invoice

I tried putting this on my invoice for 4.2 and it does not work, any idea how to modify this to make it work on 4.2?
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote
  #10  
Old 04-09-2010, 01:12 PM
 
DClinton DClinton is offline
 

Member
  
Join Date: Mar 2010
Posts: 19
 

Default Re: Displaying Purchase Number on Invoice

How can I get the PO Number: xxxx to display as

PO Number
xxxx

Dan
__________________
Dan

v. 4.1.9 Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 09:32 PM.

   

 
X-Cart forums © 2001-2020