fabriceunko Posted March 12, 2020 Share Posted March 12, 2020 Hello, in the email that administrator receives I put the function {$ DATA.gateway} in order to know which payment method was used by the customer before preparing his order. Only in the email I receive the line remains empty : The means of payment used is:. How to solve this problem? Because it’s very useful for me Link to comment Share on other sites More sharing options...
bsmither Posted March 12, 2020 Share Posted March 12, 2020 The email that the administrator receives regarding an order that has just been created is sent at either when the order goes to Pending or to Processing. This is a setting in admin, Store Settings. If at Processing, then this question: What payment gateways do you use? Link to comment Share on other sites More sharing options...
fabriceunko Posted March 13, 2020 Author Share Posted March 13, 2020 Hello, I use PayPal and check payment. When I receive the order email I would like to see how the customer pays. Because if he pays by PayPal I can print the invoice immediately to prepare it whereas if he pays by check I have time to do it before receiving the check. Link to comment Share on other sites More sharing options...
bsmither Posted March 13, 2020 Share Posted March 13, 2020 And this happens using either of the gateways? For "check payment", this is the Print Order Form gateway? If so, I see that there is no place where this module updates the Order Summary database table. Plus the fact the admin would only know about this order if the Store Settings were set to email the admin on Order Pending. The PayPal Pro module does update the Order Summary table early enough for your purposes. So, for "PayPal", is this Standard, Braintree, Pro (now called Commerce)? Link to comment Share on other sites More sharing options...
fabriceunko Posted March 13, 2020 Author Share Posted March 13, 2020 For the moment I have only had payment by PayPal, I use PayPal commerce. I put {$ DATA.gateway} in the administrator's email to get this information, but nothing is displayed In my email template I put this. Maybe it’s not good? <p>Le moyen de paiement est : {$DATA.gateway}.</p> You’ve changed with that, I’ll wait for an order to see if it works <td><strong>Moyen de paiement </strong></td> <td><strong>{$DATA.gateway}</strong></td> Link to comment Share on other sites More sharing options...
bsmither Posted March 13, 2020 Share Posted March 13, 2020 I will look at PayPal Commerce and determine where and when the gateway name is saved to the Order Summary table. Link to comment Share on other sites More sharing options...
fabriceunko Posted March 14, 2020 Author Share Posted March 14, 2020 On 3/13/2020 at 7:39 AM, fabriceunko said: For the moment I have only had payment by PayPal, I use PayPal commerce. I put {$ DATA.gateway} in the administrator's email to get this information, but nothing is displayed In my email template I put this. Maybe it’s not good? <p>Le moyen de paiement est : {$DATA.gateway}.</p> You’ve changed with that, I’ll wait for an order to see if it works <td><strong>Moyen de paiement </strong></td> <td><strong>{$DATA.gateway}</strong></td> it does not work Link to comment Share on other sites More sharing options...
bsmither Posted March 15, 2020 Share Posted March 15, 2020 Please make this edit: In /classes/order.class.php, near line 1387: Find: # Misc On a new blank line below it, add: 'gateway' => $this->_basket['gateway'], You can also put {$DATA.gateway} in the subject line - makes for a very quick notice of this fact when viewing the list of emails in the reader. Link to comment Share on other sites More sharing options...
fabriceunko Posted March 15, 2020 Author Share Posted March 15, 2020 Thank you; I will test. Link to comment Share on other sites More sharing options...
fabriceunko Posted March 27, 2020 Author Share Posted March 27, 2020 Hello again, it does not work .. I still do not have the payment method used displayed in the email I receive when ordering from a customer. Link to comment Share on other sites More sharing options...
bsmither Posted March 27, 2020 Share Posted March 27, 2020 That is strange. I will continue to research why this isn't working for you. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.