je suis totalement nouveau sur OsCommerce et je dois placer un code de tracking dans un site existant...
C'est fait, mais si je laisse le code entier il affiche la page blanche au lieu de passer à la suivante.
Le problème est que ça marche si j'envlève le tag <img ....>, mais c'est grâce à cette image que les achteurs se comptabilisent... Donc ce n'est pas la sollution.
Une chose à remarquer est peut être que le code appelé dans lequel j'ai mis ce trackeur est en pur php et le tag image qui pose problème est en html.
Que faire alors avec ce tag image ? Ou placer le trackeur ???
Avez vous une idée, pouvez vous me guider un peu pour j'arrive à résourdre le problème?
voici le code de tracking que j'insère :
CODE
$currency = "EUR"; # CURRENCY - MUST BE THREE CHARACTERS E.G. SEK, EUR, USD, ...
$value = $total_cost; # ORDER VALUE
$orderid = $insert_id; # ORDER ID
#
# NO CHANGES BELOW HERE !!!!
#
$oenc = $value . $currency . $orderid;
$oenc = strtr($oenc, "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz", "56789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234");
$hash = md5($oenc);
$oenc = $oenc . $hash;
?>
<img src="http://postclicktracking.com/tracking/?cuid=829&acid=202&oenc=<?php echo $oenc; ?>" width="1" height="1">
$value = $total_cost; # ORDER VALUE
$orderid = $insert_id; # ORDER ID
#
# NO CHANGES BELOW HERE !!!!
#
$oenc = $value . $currency . $orderid;
$oenc = strtr($oenc, "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz", "56789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234");
$hash = md5($oenc);
$oenc = $oenc . $hash;
?>
<img src="http://postclicktracking.com/tracking/?cuid=829&acid=202&oenc=<?php echo $oenc; ?>" width="1" height="1">
Merci d'avance !!!
Tomas