Zen Cart Logo
Forums / Managing Customers and Orders / New Field in Order Confirmation

New Field in Order Confirmation

Views: 898

Results 1 to 2 of 2
12 Nov 2011, 12:05 AM
#1
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

New Field in Order Confirmation

I did find another thread on this and tried the steps recommended but I cannot get it to work.

I have a field in the database called "dropdown"

In the /includes/classes.order.php I have added:

'dropdown' => $order->fields['dropdown'],

in the $this->info array

and then I added this in the order totals area (I want the field to be right below the order total)

if ($this->info['dropdown'])
$email_order .= $this->info['dropdown'] . "\n\n";

I have the text pulled in that I want to go before this database field.....but just cannot pull this field....

Can anyone advise what I am doing wrong?!?!?!?

Thank you!!!!!

25 Nov 2011, 4:30 AM
#2
gaurav10feb avatar

gaurav10feb

Zen Follower

Join Date:
Jan 2010
Location:
Australia
Posts:
243
Plugin Contributions:
1

Re: New Field in Order Confirmation

what is the name of table, which has dropdown? if its order table

than you need to modify the $order_query first

you need to add dropdown in select command