X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Displaying Purchase Number on Invoice (https://forum.x-cart.com/showthread.php?t=24731)

Krystchris 09-07-2006 01:27 PM

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.

Krystchris 09-11-2006 06:42 AM

Re: Displaying Purchase Number on Invoice
 
Is it possible to add the PO number to the invoice?

-C

Krystchris 09-11-2006 09:11 AM

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

jdiehl 09-11-2006 11:59 AM

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.

Jon 01-26-2007 02:35 PM

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}



chamberinternet 04-02-2007 05:42 AM

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

jerrym 09-17-2007 01:28 PM

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

sk8conz 01-14-2008 05:40 PM

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}


GreatLakesVacuum 02-20-2009 12:05 PM

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?

DClinton 04-09-2010 01:12 PM

Re: Displaying Purchase Number on Invoice
 
How can I get the PO Number: xxxx to display as

PO Number
xxxx

Dan


All times are GMT -8. The time now is 05:29 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.