Jump to content

Function {$DATA.gateway} does not work (bug?)


Recommended Posts

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

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

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

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

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 :&nbsp;{$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

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 :&nbsp;{$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

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

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...