I try both examples with no sucess
Quote:
eleven
I got the mod to work. Thanks. I'd like to add the field to the email that is sent to the administrator. I added this line to the order_notification_admin:
Code:
{$lng.lbl_how_heard}: {$order.hear}
|
and
Quote:
eleven
This is how I added the extra field to the admin email. There's probably a better way to do it, but this works.
[skin]/mail/order_notification_admin.tpl - add the following line wherever you want the extra field to show up in the email:
Code:
{$lng.lbl_how_heard}: {$hearabout}
include/func.php - in the function func_place_order add the following:
Code:
$ha_result = func_query_first ("SELECT hear FROM xcart_customers WHERE login='$userinfo[login]'");
$hearabout = $ha_result ["hear"];
$mail_smarty->assign("hearabout",$hearabout);
I added it before the line:
Code:
$prefix = ($order_status=="I"?"init_":"");
|
can someone help me. the field shows up in the register.php
but it won't send the data to mysql and I don't see it on the register email
my site is:
http://www.wildshopping.com
thanks in advance