email de comfirmation de commande

54 posts in this topic

Posted · Report post

le fichier que tu as mis plus haut c'est la totalité ?

quelle version?

Share this post


: post
Share on other sites

Posted · Report post

bonjour,

oui ses la totalité du fichier !

j' ai comme version la version 4.0 ( se qui y a marqué en bas de Backoffice)

merci

Share this post


: post
Share on other sites

Posted · Report post

où as tu cette fonction affichage_fin_succes dans lib/fonctions/fonctions.php ? fais en voir le contenu

Share this post


: post
Share on other sites

Posted · Report post

je n'ai aucune fonction qui se nome : "affichage_fin_succes" dans "fonctions.php" :huh:

Share this post


: post
Share on other sites

Posted · Report post

ce truc me chauffe grrr

bon, regarde ds le back office dans Types de paiement

Regarge la façon dont est écrit le mot chèque, car il doit ête comme cela exactement (Chèque).

mais ce serait bien de trouver cette fonction affichage_fin_succes ds template.php peut etre

Share this post


: post
Share on other sites

Posted · Report post

le mot chèque est bien ecrit comme sa : Chèque

(j'ai fait un copier-coller du type de paiement.)

la fonctions "affichage_fin_succes" est dans "template.php"

voici le code:

function affichage_fin_succes() {


	global $commandeid;

	global $wwwroot; 

	global $paypal;

	global $site;

	global $support;


	send_mail_order_admin($commandeid);


	$result = mysql_query("SELECT * FROM peel_commandes WHERE id ='".$commandeid."'");


	$com = mysql_fetch_object($result);


echo "<div class=\"entete\"><img src=\"$wwwroot/images/fleche.gif\" >&nbsp;".STEP3."</div>"; 


?>


<div class="normal">

<?php


echo MSG_THANKS;


switch ($com->paiement) {


case html_entity_decode(CHECK) :


email_commande($commandeid);


?>

<p>

- <?echo PRINT_PROFORMA?></p>

<p>

- <?echo SEND_CHECK ?> :

<?php

print_societe();


echo "</p>";


break;


case html_entity_decode(TRANSFER) :


email_commande($commandeid);


echo nl2br(SEND_TRANSFER);


print_rib();


break;


case html_entity_decode(PAYPAL) :


?>

<div align="center">

Pour r&eacute;gler par carte bancaire, cliquez ici :<br />

	<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

		<INPUT TYPE="hidden" NAME="cmd" VALUE="_ext-enter">

		<INPUT TYPE="hidden" NAME="redirect_cmd" VALUE="_xclick">

		<input type="hidden" name="business" value="<?=$paypal?>">

		<input type="hidden" name="item_name" value="<?=$site?> COMMANDE <?=$commandeid?>">

		<input type="hidden" name="item_number" value="<?=$commandeid?>">

		<input type="hidden" name="amount" value="<?echo number_format($com->montant,2);?>">

		<input type="hidden" name="page_style" value="Primary">

		<input type="hidden" name="no_shipping" value="1">

		<input type="hidden" name="return" value="<?=$wwwroot?>/modules/paypal/ok.php?id=<?=$commandeid?>">

		<input type="hidden" name="cancel_return" value="<?=$wwwroot?>/modules/paypal/nok.php?id=<?=$commandeid?>">

		<input type="hidden" name="no_note" value="1">

		<input type="hidden" name="currency_code" value="<?php echo $_SESSION['devise']['code']?>">

		<input type="hidden" name="lc" value="FR">

		<input TYPE="hidden" NAME="email" VALUE="<?=$com->email?>">

		<input type="image" src="https://www.paypal.com/fr_FR/i/btn/x-click-but23.gif" border="0" name="submit" alt="Effectuez vos paiements via PayPal : une solution rapide, gratuite et sécurisée !">

		</form>

		<br>

		<img src="<?=$wwwroot?>/images/logo-xclickBox.gif" width="152" height="29" alt="" border="0">

	</div>



<?

break;


}

echo "<div class=\"entete\">".ORDER_RESUME."</div>";


echo EMAIL." : ".$com->email."<br />";


echo REFERENCE." : ".$commandeid."<br />";


echo ORDER_AMOUNT." : ".fprix($com->montant)." ".$com->devise."<br />";


echo ORDER_DATE." : ".return_date_fr($com->o_timestamp)."<br />";


echo PAYEMENT." : ".$com->paiement ."<br />";


echo PROFORMA ?> : 

<a href="java script:OpenWin2('<?=$wwwroot?>/factures/facture_html.php?mode=proforma&id=<?=$commandeid?>&timestamp=<?=urlencode($com->o_timestamp)?>',550,450,'bdc');" class="normal">

<?php echo PRINT_PROFORMA?></a>.


<?php  


}

merci

Share this post


: post
Share on other sites

Posted · Report post

et dans le fichier de langue comment est écrit chèque ?

Share this post


: post
Share on other sites

Posted · Report post

et dans le fichier de langue comment est écrit chèque ?

extrait du fichier :

define ("PAYEMENT","Paiement",TRUE);

define ("CHECK","Chèque",TRUE);

define ("TRANSFER","Virement",TRUE);

define ("COMMENTS","Commentaires / Instructions spéciales",TRUE);

Share this post


: post
Share on other sites

Posted · Report post

tu as refait un test ?

Share this post


: post
Share on other sites

Posted · Report post

re-bonjour

je viens de refaire l'essaie et ses pareil

paiment par cheque: 2 mail admin et aucun mail client

:huh:

merci

Share this post


: post
Share on other sites

Posted · Report post

pff, arf, grr rhô là là, je crois avoir trouvé !

mets $modele_a_montrer = affichage_fin_succes(); à la place de $modele_a_montrer = "affichage_fin_succes()";

dans le fichier "fin_commande.php"

Share this post


: post
Share on other sites

Posted · Report post

bonjour,

j'ai faits un test sa marche toujour pas !

ses pas normal normalement un prodiuit acheter doit etre complet

la on dirait qu'il manque quelque chose ?

:huh:

merci

Share this post


: post
Share on other sites

Posted · Report post

tu as bien écris la fonction sans les guillemets ?

Share this post


: post
Share on other sites

Posted · Report post

tu as bien écris la fonction sans les guillemets ?

oui !

le fichier "fin_commande.php" :

<?

include("../configuration.inc.php");

necessite_identification();


/* Test pour empêcher d'arriver ici par hasard ou en tapant l'url  */

$caddie_est_vide = $_SESSION['caddie']->compte_elements() == 0;


$commande = charge_commande();


if ($caddie_est_vide || ! $commande) {

	header("Location: $wwwroot");

	die;

}


/* Création de la commande dans la base, autorise alors le paiement

 * et informe le client que la commande est ok

 */


$commandeid = cree_commande($commande);


	$DOC_TITLE = "[PEEL.FR]";


	$modele_a_montrer = affichage_fin_succes();	


	/* Le caddie est réinitialisé pour ne pas laisser le client passer une deuxième commande en soumettant une deuxième fois le formulaire */


	$_SESSION['caddie']->init();


	vide_commandeinfo();


	unset ($_SESSION['wantsurl']);



include("$repertoire_modele/haut.php");


eval($modele_a_montrer.";");


include("$repertoire_modele/bas.php");


?>

:huh:

Share this post


: post
Share on other sites

Posted · Report post

ds la fonction => function affichage_fin_succes() remplace :

case html_entity_decode(CHECK) : par case CHECK :

et passe une cde par chèque

Share this post


: post
Share on other sites

Posted · Report post

pareil !!

function affichage_fin_succes() {


	global $commandeid;

	global $wwwroot; 

	global $paypal;

	global $site;

	global $support;


	send_mail_order_admin($commandeid);


	$result = mysql_query("SELECT * FROM peel_commandes WHERE id ='".$commandeid."'");


	$com = mysql_fetch_object($result);


echo "<div class=\"entete\"><img src=\"$wwwroot/images/fleche.gif\" >&nbsp;".STEP3."</div>"; 


?>


<div class="normal">

<?php


echo MSG_THANKS;


switch ($com->paiement) {


//case html_entity_decode(CHECK) :

case CHECK : 

email_commande($commandeid);


?>

<p>

- <?echo PRINT_PROFORMA?></p>

<p>

- <?echo SEND_CHECK ?> :

<?php

print_societe();


echo "</p>";


break;


case html_entity_decode(TRANSFER) :


email_commande($commandeid);


echo nl2br(SEND_TRANSFER);


print_rib();


break;


case html_entity_decode(PAYPAL) :


?>

<div align="center">

Pour r&eacute;gler par carte bancaire, cliquez ici :<br />

	<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

		<INPUT TYPE="hidden" NAME="cmd" VALUE="_ext-enter">

		<INPUT TYPE="hidden" NAME="redirect_cmd" VALUE="_xclick">

		<input type="hidden" name="business" value="<?=$paypal?>">

		<input type="hidden" name="item_name" value="<?=$site?> COMMANDE <?=$commandeid?>">

		<input type="hidden" name="item_number" value="<?=$commandeid?>">

		<input type="hidden" name="amount" value="<?echo number_format($com->montant,2);?>">

		<input type="hidden" name="page_style" value="Primary">

		<input type="hidden" name="no_shipping" value="1">

		<input type="hidden" name="return" value="<?=$wwwroot?>/modules/paypal/ok.php?id=<?=$commandeid?>">

		<input type="hidden" name="cancel_return" value="<?=$wwwroot?>/modules/paypal/nok.php?id=<?=$commandeid?>">

		<input type="hidden" name="no_note" value="1">

		<input type="hidden" name="currency_code" value="<?php echo $_SESSION['devise']['code']?>">

		<input type="hidden" name="lc" value="FR">

		<input TYPE="hidden" NAME="email" VALUE="<?=$com->email?>">

		<input type="image" src="https://www.paypal.com/fr_FR/i/btn/x-click-but23.gif" border="0" name="submit" alt="Effectuez vos paiements via PayPal : une solution rapide, gratuite et sécurisée !">

		</form>

		<br>

		<img src="<?=$wwwroot?>/images/logo-xclickBox.gif" width="152" height="29" alt="" border="0">

	</div>



<?

break;


}

echo "<div class=\"entete\">".ORDER_RESUME."</div>";


echo EMAIL." : ".$com->email."<br />";


echo REFERENCE." : ".$commandeid."<br />";


echo ORDER_AMOUNT." : ".fprix($com->montant)." ".$com->devise."<br />";


echo ORDER_DATE." : ".return_date_fr($com->o_timestamp)."<br />";


echo PAYEMENT." : ".$com->paiement ."<br />";


echo PROFORMA ?> : 

<a href="java script:OpenWin2('<?=$wwwroot?>/factures/facture_html.php?mode=proforma&id=<?=$commandeid?>&timestamp=<?=urlencode($com->o_timestamp)?>',550,450,'bdc');" class="normal">

<?php echo PRINT_PROFORMA?></a>.


<?php  


}

:huh: ;) :lol:

Share this post


: post
Share on other sites

Posted · Report post

peut avoir un acces au back office

essai de mettre la fonction function affichage_fin_succes() dans fin_commande.php après include("$repertoire_modele/bas.php");

Share this post


: post
Share on other sites

Posted · Report post

bonjour

essai de mettre la fonction function affichage_fin_succes() dans fin_commande.php après include("$repertoire_modele/bas.php");

voici le fichier retouché :

<?

include("../configuration.inc.php");

necessite_identification();


/* Test pour empêcher d'arriver ici par hasard ou en tapant l'url  */

$caddie_est_vide = $_SESSION['caddie']->compte_elements() == 0;


$commande = charge_commande();


if ($caddie_est_vide || ! $commande) {

	header("Location: $wwwroot");

	die;

}


/* Création de la commande dans la base, autorise alors le paiement

 * et informe le client que la commande est ok

 */


$commandeid = cree_commande($commande);


	$DOC_TITLE = "[PEEL.FR]";


	$modele_a_montrer = affichage_fin_succes();	


	/* Le caddie est réinitialisé pour ne pas laisser le client passer une deuxième commande en soumettant une deuxième fois le formulaire */


	$_SESSION['caddie']->init();


	vide_commandeinfo();


	unset ($_SESSION['wantsurl']);



include("$repertoire_modele/haut.php");


eval($modele_a_montrer.";");


include("$repertoire_modele/bas.php");

affichage_fin_succes();	

?>

et voici se que j'ai en bas de l'écran :

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/coeurdasie/domains/coeurdasie.fr/public_html/modeles/default/template.php on line 1870

Notice: Undefined property: o_timestamp in /home/coeurdasie/domains/coeurdasie.fr/public_html/modeles/default/template.php on line 1880

Notice: strtotime() [function.strtotime]: Called with empty time parameter in /home/coeurdasie/domains/coeurdasie.fr/public_html/lib/fonctions/fonctions.php on line 486

Notice: strtotime() [function.strtotime]: Called with empty time parameter in /home/coeurdasie/domains/coeurdasie.fr/public_html/lib/fonctions/fonctions.php on line 487

Notice: strtotime() [function.strtotime]: Called with empty time parameter in /home/coeurdasie/domains/coeurdasie.fr/public_html/lib/fonctions/fonctions.php on line 488

Notice: strtotime() [function.strtotime]: Called with empty time parameter in /home/coeurdasie/domains/coeurdasie.fr/public_html/lib/fonctions/fonctions.php on line 489

Notice: Undefined property: paiement in /home/coeurdasie/domains/coeurdasie.fr/public_html/modeles/default/template.php on line 1882

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/coeurdasie/domains/coeurdasie.fr/public_html/modeles/default/template.php on line 1772

ETAPE 3. CONFIRMATION DE COMMANDE

Merci de votre confiance, votre commande a été enregistrée avec succès.

Résumé de la commande

Email :

Référence : : 35

Notice: Undefined property: devise in /home/coeurdasie/domains/coeurdasie.fr/public_html/modeles/default/template.php on line 1848

Montant de la commande : 0,00

Notice: Undefined property: o_timestamp in /home/coeurdasie/domains/coeurdasie.fr/public_html/modeles/default/template.php on line 1850

Notice: strtotime() [function.strtotime]: Called with empty time parameter in /home/coeurdasie/domains/coeurdasie.fr/public_html/lib/fonctions/fonctions.php on line 486

Notice: strtotime() [function.strtotime]: Called with empty time parameter in /home/coeurdasie/domains/coeurdasie.fr/public_html/lib/fonctions/fonctions.php on line 487

Notice: strtotime() [function.strtotime]: Called with empty time parameter in /home/coeurdasie/domains/coeurdasie.fr/public_html/lib/fonctions/fonctions.php on line 488

Notice: strtotime() [function.strtotime]: Called with empty time parameter in /home/coeurdasie/domains/coeurdasie.fr/public_html/lib/fonctions/fonctions.php on line 489

Date de la commande : Samedi 17 novembre 2007

Notice: Undefined property: paiement in /home/coeurdasie/domains/coeurdasie.fr/public_html/modeles/default/template.php on line 1852

Paiement :

Bon de commande : Imprimer le bon de commande.

merci :huh:

Share this post


: post
Share on other sites

Posted · Report post

pardon je voulais dire le contenu de la fonction affichage_fin_succes();

Share this post


: post
Share on other sites

Posted · Report post

j'ai écran blanc et sa comme erreur :

Fatal error: Cannot redeclare affichage_fin_succes() (previously declared in /home/coeurdasie/domains/coeurdasie.fr/public_html/achat/fin_commande.php:42) in /home/coeurdasie/domains/coeurdasie.fr/public_html/modeles/default/template.php on line 1760

(je pense qu'on peut déclaré qu'une seul fois la fonction?)

:huh:

Share this post


: post
Share on other sites

Posted · Report post

oui , change juste de nom de la fonction ds les fichiers correspondants pour eviter la répétition

Share this post


: post
Share on other sites

Posted · Report post

pareil !!!

j'ai toujour pas d'email client !!! :huh:

Share this post


: post
Share on other sites

Posted · Report post

 

Share this post


: post
Share on other sites

Posted · Report post

si c'est pour donner la soluce par mp c'est pas sport !

Share this post


: post
Share on other sites

Posted · Report post

bonsoir

phil83 avez vous eu mon MP ?

oui j'ai eu votre mp, mais je trouve que le produits que j'ai acheté a un souci

cette partie la :"email client " devrais marcher normalement , sans pour cela

répondre a un devis avec des frais en sup !! :huh:

je ne demande pas quelque chose en plus , simplement que la partie :

"email client" marche!

voila pourquoi je ne vous avais pas répondue !!

cordialement !!

Share this post


: post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

Twitter Advisto ecommerce

Facebook PEEL Shopping