Post by Heilong » Fri Nov 07, 2008 11:54 am

Hello everybody,

In the email sent after the order, how to add the client ID, same ID as in the database.

Thanks for help,

New member

Posts

Joined
Mon Sep 01, 2008 5:57 pm

Post by Heilong » Mon Nov 10, 2008 9:59 am

Any ideas ? :)

New member

Posts

Joined
Mon Sep 01, 2008 5:57 pm

Post by Heilong » Mon Nov 10, 2008 11:43 am

I found it.

We need to modify 3 files :

- catalog/controller/checkout_confirm.php to add the following :

Code: Select all

$email->set('customer_id', $language->get('customer_id'));
$email->set('id', $customer->getId());

- catalog/language/...your language.../controller/checkout_confirm.php: this is to add a label if needed

Code: Select all

$_['customer_id']          = 'Client ID';
- catalog/template/...your template.../content/checkout_email.tpl, to add the following code :

Code: Select all

<?php stdEcho($customer_id); ?>
<?php stdEcho($id); ?>
Bye,

New member

Posts

Joined
Mon Sep 01, 2008 5:57 pm
Who is online

Users browsing this forum: No registered users and 6 guests