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)
-   -   Adding a new field to Order History Page > Almost there..missing something (https://forum.x-cart.com/showthread.php?t=43163)

gcca 10-22-2008 10:52 AM

Adding a new field to Order History Page > Almost there..missing something
 
I want to add a new field "Transaction Date" to manually input a date when the CC was charged (we use manual processing). This will be done by our sales team using order history page (admin) - it is not seen by the customer during the order.

I successfully added a new field to the xcart_orders table as "date_transaction".

I edited the history_order.tpl page to include the new field - closely copying the existing customer notes field.

{if $usertype ne "C"}
<p />
Transaction Date (MM/DD/YY):<br />
<input name="date_transaction" type="text" style="width: 100px;" value="{$date_transaction|escape:quotes}" size="11" maxlength="11" />
{/if}


Now what func file do I edit to input this date into the database so its saved?

gcca 10-22-2008 02:32 PM

Re: Adding a new field to Order History Page > Almost there..missing something
 
Nevermind - I found it by editing /shop/admin/cart.php

And Inputting the new fields under:

$query_data = array (
"tracking" => $tracking,
"customer_notes" => $customer_notes,


All times are GMT -8. The time now is 10:14 AM.

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