Sign in to follow this  
manolinda

How to rename "M2E Pro Payment" to "eBay Payment"?

Recommended Posts

Is there any posibility to rename the payment method "M2E Pro Payment"? We are printing the payment method on our pdf invoices and our clients obviously do not understand that payment method term.

Share this post


Link to post
Share on other sites

You can't change payment method. It is used by default for creation of magento order. You can still try to edit in the converted invoice.

Share this post


Link to post
Share on other sites

I was thinking about including another switch case in the pdf invoice template, but than I thought it would be even better to differ between "ebay payment by paypal" and for example "ebay payment through wire transfer". I did not yet find the time to look into the objects and if this info can be found in there, but I will let the community about it asap.

Share this post


Link to post
Share on other sites

Alright if someone else is having the same problem, I came up with this solution. I am using SNM PDFprint:

{{if helper.eq(payment_method,'m2epropayment')}}
Ebay Transaktion{{else}}{{var order.getPayment().getMethodInstance().getTitle()}}{{/if}}

However instead of just saying "ebay transaction" I also would like to tell if it was paid using paypal or bank transfer, but I still have no solution for that.

Share this post


Link to post
Share on other sites

We researched the same question some time ago. From the response that M2E developers provided, we learnt that the original payment_method is stored in the additional data of the getInfoInstance() of the method getMethodInstance(). You will find a serialized array in the additional data field which you will have to unserialize to retrieve the key. 

Share this post


Link to post
Share on other sites

This change will simply replace the default title to a different one. You will just rename the payment method that M2E Pro uses. The change can be the solution in your case, though, if you need a particular method title to be displayed. 

Share this post


Link to post
Share on other sites
On 12.5.2017 at 9:38 AM, sv3n said:

Can't you change this from Admin -> Config -> Sales -> Payment methods?

 

m2e_payment_label.PNG

This option does not exist anymore in Magento 2, so I had to go the alternative way or did I miss something?

:) Many thanks to PP for the unserialize hint, but sadly did not yet have time to realize it :S

Share this post


Link to post
Share on other sites
On 6/12/2017 at 7:10 PM, manolinda said:

This option does not exist anymore in Magento 2, so I had to go the alternative way or did I miss something?

:) Many thanks to PP for the unserialize hint, but sadly did not yet have time to realize it :S

This option is present in Magento 2.

Screenshot (24).png

  • Like 1

Share this post


Link to post
Share on other sites
On 5/2/2017 at 1:53 PM, manolinda said:

Alright if someone else is having the same problem, I came up with this solution. I am using SNM PDFprint:


{{if helper.eq(payment_method,'m2epropayment')}}
Ebay Transaktion{{else}}{{var order.getPayment().getMethodInstance().getTitle()}}{{/if}}

However instead of just saying "ebay transaction" I also would like to tell if it was paid using paypal or bank transfer, but I still have no solution for that.

Hi Manolinda,

I am using SNM PDFprint as well. Two questions; 

1) Have you succeeded to derive whether it is paypal or bank transfer?

2) Our Order Number for Amazon Orders starts with  "A_" (ebay orders with "E_"), however I have no clue how to do an IF clause considering only the prefix (* as wildcard does not work > "A_*")

In general it would be great to directly access those m2e tables, e.g. as you suggested identifying the payment method...some additional information I found here, however I am not able to implement this some in SNM pdfPrint.

https://magento.stackexchange.com/questions/212454/m2e-get-order-info-programmatically

Thanks!

 

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.

Sign in to follow this