Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

send mails to other people on checkout


Marco82

Recommended Posts

Posted

hi, i have to send an email to distributor, owner and customer. Now it sends just to owner and customer. I made the code down here but something wrong.. can't understand what! Please help!

 

  $emailagente_query = tep_db_query("select v.admin_firstname, v.admin_lastname, v.admin_email_address from vend v left join customers c on v.admin_id=c.customers_ref where c.customers_id='$customer_id'");
 $emailagente_values = tep_db_fetch_array($emailagente_query);
 if ($emailagente_values['vend.admin_firstname'] <> "")
 {
tep_mail($emailagente_values['vend.admin_firstname'] . ' ' . $emailagente_values['vend.admin_lastname'], $emailagente_values['vend.admin_email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
}

 

it takes nothing from DB.. seems like.. but tables are all correct!

I have putted this code in checkout_process.php

 

Thanks!

 

Bye!

Posted

Marco,

What I would do...Add another entery in the configuration table and give

the variable a name that associates it to vendor ?????VENDOR.

If you look at the configuration table entrys for store owner email variable and copy it and change the display info to what you want...

 

Then go into checkout module and copy the email code and retrieve

the vaiable from the configuration table and place it into copied code...

I hope this helps

Roman

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...