Skip to main content

Add custom bcc on admin confirmation email

More
11 years 10 months ago #179454 by sales@technoran.gr

Xavier wrote: Hi,

You can use the following code:

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.

More
11 years 10 months ago #179484 by Jerome
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.
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.133 seconds
Powered by Kunena Forum