Jump to content
fabriceunko

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

Recommended Posts

Posted (edited)

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

 

Edited by fabriceunko
I got the wrong section to move in Technical Help

Share this post


Link to post
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?

 

Share this post


Link to post
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.

Share this post


Link to post
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)?

Share this post


Link to post
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>

Share this post


Link to post
Share on other sites

I will look at PayPal Commerce and determine where and when the gateway name is saved to the Order Summary table.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Posted (edited)

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.

Edited by bsmither

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

That is strange. I will continue to research why this isn't working for you.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...