I want some code to add there. The code computes bankrefrence number from order id, but if i copy-paste the php code directly to sendOrderToClient.tpl then the code is printed ass text (whole code) to the email.
This is the code that calculates the bankrefrence (works when order ID is 3 digits):
<?php $viite=LaskeViite($iOrder);
$viite=LaskeViite($luku1); echo $viite;
function LaskeViite ($luku){ $kerroin="7137137137137137137";
if (TarkistaNumero ($luku)) { $pituus=strlen(strval($luku) ); $apui=strlen(strval($kerroin) );
echo "Anna numero josta haluat viitenumeron laskea."; }
}
function TarkistaNumero ($tarkistettavaluku){ if ( is_numeric($tarkistettavaluku) ) { $pituus=strlen(strval($tarkistettavaluku) ); if ($pituus>2 && $pituus<20) { return True; } else { echo "Antamasi luku on liian lyhyt tai pitkä. Luku voi olla 3-19 numeroa"; return False; } } else { return False; } } ?>
What i ment, was that i want to add some php (that calculates refrencenumber from order id) somewhere in sendOrderToClient plugin or tpl so when client gets email, there is also a line like this:
---- example ---- your bankrefrence number is: 1234 ---- example ends ----
numbers 123 are the order id, and number 4 is confirm number calculated from numbers 123.
I have the code that calculates finnish refrence numbers, but now i need it to integrated to sendOrderToClient plugin.
Because i don't want to send handmade invoices anymore after every order.
panos
2007-01-20 13:01
can i see him in the practice this in order to him I search better??
panos >>>> My Freelance
panos
2007-01-20 13:22
XMMM can you send me your url in Info@ergalia.com ??
There is not much to see, because i don't know much about code and i need that refrencenumber to calculated for email that sendOrderToClient plugin sends to customer.
panos
2007-01-20 15:47
give to me your site URL
panos >>>> My Freelance
panos
2007-01-20 17:21
Well. you need help other us you not give more elements
how how can help you ??!!!
I believe that it should you add something in the config/general.php like
$config['sYOUR NAME CODE']
and afterwards you put in en_sendOrderToClient.tpl $config['sYOUR NAME CODE']