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)
-   -   Purchase Order On Invoice (https://forum.x-cart.com/showthread.php?t=58866)

caucus 04-12-2011 06:09 AM

Purchase Order On Invoice
 
Hello Great Forum Support

I did find the results to change the text and the required fields for the purchase order.

What I need now is to show those fields on the invoice.

Is there a way to do this?

I see when I go to the back end the information is visible to the admin at the following
Order details (not visible to customer and provider):

However, I need the orders department to see them when they get the order e-mail and the customer needs to see the information on the invoice.

I do have the correct labels on the invoice. What I do not know is where the label is for the data that is put into the PO fields. It does show on the bottom in the back end so it must be available somewhere.

cflsystems 04-12-2011 01:37 PM

Re: Purchase Order On Invoice
 
These data is available to admin only by default. You need to modify the php file responsible for showing the invloice. Also be careful and make sure that you enable only PO info and not any of the other payment methods - it is consider payment method and it is all encrypted

caucus 04-13-2011 02:35 AM

Re: Purchase Order On Invoice
 
Hello

Thank you for the reply.

On this cart the orders department needs to see three of the items of the PO fields on the invoice so they can match the order when shipping.

I have the labels on the html invoice now all I need is to place the data that the user added to the fields.

Where is that info coming from? If it is added to the admin order I should be able to get it from somewhere.

Every day I uncover mysteries of x-cart that I never knew existed.

cflsystems 04-13-2011 03:13 AM

Re: Purchase Order On Invoice
 
PO is a payment method. All its info is encrypted and stored in orders tables in the database. It is decrypted and show for admin only. If you want customers to see it or anybody else besides admin you need to change this by modifying php code

caucus 04-13-2011 03:41 AM

Re: Purchase Order On Invoice
 
Hello

OK, Now i get it.

As a payment method it would be encrypted as you say and that is why only the admin can see it.

On this site the only way to purchase the items is with a PO there is never a CC or any other payment option.

Do you know what PHP file to edit?

cflsystems 04-13-2011 09:52 AM

Re: Purchase Order On Invoice
 
Done this before but can;t remember right now on top of my head... start with history_order.php, could be in one of the functions in func.order.php

caucus 04-13-2011 10:50 AM

Re: Purchase Order On Invoice
 
Hello

Secrets of X-cart!

I looked for the files but did not find them.

Where does one start to look for the file? I thought it may be under payment. Not there.

cflsystems 04-13-2011 05:21 PM

Re: Purchase Order On Invoice
 
/include/history_order.php
/include/func/func.order.php

caucus 04-14-2011 04:03 AM

Re: Purchase Order On Invoice
 
Hello Again

Thank you for your help. Now can see if I can get this thing going.

I would have never found it.

adriant 06-27-2011 12:16 AM

Re: Purchase Order On Invoice
 
did you manage to do this?


All times are GMT -8. The time now is 07:38 AM.

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