Antwort #2 am: 10. April 2015, 10:58:10
Its send_order.php
Included by checkout_process.php
mfg
hen
First of all thanks for the reply!
I've already checked those files, and is true that 'send_order.php' is what send 'order_mail.html' to the customers with their '$address' and so.
But i'd like to know how to manage those variables? i mean, let's suppose i want to modify their email to not been completly seen, which is sent on order_mail.html under the variable '$email'.
Email: {$email}
Address: {$address}
The email is something like pepito@hotmail.com.
so, where can i change the variable $email (which contain pepito@hotmail.com) or where can i call a function that modify $email variable ?
I've already made a function (just added on inc folder) "xtc_hide_email.php", where i basically get the '$email' variable and converts to this 'pe********mail.com' (actually i hide the first and last 5 chars, but doesn't matter,it's just an example)
This change is only for output(visible for customers ofc), since we do need the IBAN
So when the order_mail is sent to the customer, he will get :
"Hello pepito,
blablabla
address: his address
email: pe********mail.com
telfnummer: 1234566
and so ...."
So i have the function, but don't know how and where to call it, for replace the current variable to mine.
Note: Im chaging the IBAN, which is not on original shop but implemented on our shop, so any easy example with $EMAIL would fit aswell. Thanks a lot