Jump to content

Afficher le poid total du colis dans l'email de confirmation


Recommended Posts

Bonjour tout le monde,
pour une question d'organisation concernant la gestion de notre e-commerce et des commandes clients je voudrais afficher le poid total du colis concernant la commande concerné dans l'email de confirmation de commande.

Mais je ne sais pas comment m' y prendre en effet je ne connais pas la variable correspondante au poid total.

Quelqu'un pourrait -il me venir en aide svp ?

En vous remerciant.

Cordialement Tchupa.

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...
  • 4 weeks later...
  • 1 month later...
  • 4 months later...

Il faut modifier le code du module mailalerts.

 

fichier mailalerts.php, dans la fonction hookNewOrder(), rajouter la ligne concernant le poids (j'ai pas testé) :

 

 

$templateVars = array(		
'{poids_total}' => $order->getTotalWeight(),
		'{firstname}' => $customer->firstname,
		'{lastname}' => $customer->lastname,

 

Editer le fichier mails/fr/new_order.html sous les lignes :

 

		<tr>
		<td align="left">
			Transporteur : <strong>{carrier}</strong>
		</td>
	</tr>
	<tr><td>  </td></tr>

 

rajouter les lignes

  
   <tr>
		<td align="left">
			Poids total: <strong>{poids_total}</strong>
		</td>
	</tr>
	<tr><td>  </td></tr>

Link to comment
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
×
×
  • Create New...