Add custom bcc on admin confirmation email

  • Posts: 23
  • Thank you received: 2
10 years 2 weeks ago #179454

Xavier wrote: Hi,

You can use the following code:

$mail->bcc_email = array($data->cart->billing_address->emailsalesman);

By default the admin notification email is sent only to the system administrator, but with your required modification, as we are adding the customer ass bcc in the email, so when replying it is automatically used in the bcc field.


Hi Xavier,

the field is not in the Hikashop_adress but in the Hikashop_user table and called emailsales not emailsalesman
so is correct to add the following line?
$mail->bcc_email = array($data->cart->billing_address->emailsales);

Please Log in or Create an account to join the conversation.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 2 weeks ago #179484

Hi,

If it is an address custom field, you can read the value in:
$data->cart->billing_address->my_custom_field
OR
$data->cart->shipping_address->my_custom_field

If it is an user custom field, you can read the value in:
$data->customer->my_custom_field

Just replace "my_custom_field" by the custom field key you're using.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: sales@technoran.gr

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum