Email Missing Of Customer In Sent Invoice To Order Department

Hi

Does anyone here know how to get the email address into the invoice that the store sents to the order department ?

Our old non CS Cart store did just that.

Regards

Anthony

Merry Christmas by the way, Happy Holidays

Does anyone here know how to get the email address into the invoice that the store sents to the order department ?

Our old non CS Cart store did just that.

Please use : use {$company_data.company_orders_department} in invoice.tpl

I think he may mean the customer’s email. In that case use

{$order_info.email}

But note that the invoice sent to company is the same as the customer.

But note that the invoice sent to company is the same as the customer.

The invoice template for the administrator is located here:

design/backend/mail/templates/orders/invoice.tpl

Bit the invoice template for the customer is here:

design/themes/YOUR_THEME/mail/templates/orders/invoice.tpl

Thanks guys for the input.

I have another question now that is related to this but let's all have a nice Christmas first shall we ?

Reward Points and how to get those into the voice to the customer.

Try to add the following code there (not tested):

{$smarty.const.POINTS|fn_get_user_additional_data:$order_info.user_id}

Thanks @eCom Labs

This work@holic is going to try it out later. I am just busy setting up a server for new clients

You are welcome, Anthony and Yvana. Merry Christmas!

If I remember correctly, the points are also stored in the session 'auth' element.

If I remember correctly, the points are also stored in the session 'auth' element.

Right, but what if the system send e-mail on order status change in the admin area? It is better to us built-in functions to get the necessary information

Yep, then your method would work. But I guess I'd make it conditional to avoid unneeded DB access where possible:

Total points: {if $smarty.const.AREA == 'A' && $order_info.user_id} {$smarty.const.POINTS|fn_get_user_additional_data:$order_info.user_id} {$auth.points|default:0} {/if}