Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment Method Title M2E Pro #256

Open
agentlucky opened this issue Aug 12, 2015 · 6 comments
Open

Payment Method Title M2E Pro #256

agentlucky opened this issue Aug 12, 2015 · 6 comments

Comments

@agentlucky
Copy link

I use the m2e pro extension and do import the orders from eBay. On the invoice appears the Payment Method Title "M2E Pro Payment" but not the actual Payment Method from eBay like PayPal.
When i change to the standard Magento PDF Engine everything works fine, though...
How can i solve this problem?

Thanks in advance

@sprankhub
Copy link
Member

I can only give you a short code snippet how you can get the "real" payment method (it is not from me), but you would have to implement that in your own engine, see the FAQ.

$paymentInfo = Mage::helper('payment')->getInfoBlock($order->getPayment())
    ->setIsSecureMode(true)
    ->toPdf();
$payment = explode('{{pdf_row_separator}}', $paymentInfo);
foreach ($payment as $key=>$value) {
    if (strip_tags(trim($value)) == '') {
        unset($payment[$key]);
    } else {
        $payment[$key] = strip_tags(trim($value));
    }
}
$paymentMethodArray = $this->_prepareText(
    $payment[0], $page, $font, 10, $width
);
$paymentMethod = array_shift($paymentMethodArray);

@Schrank should we implement something like that in the default engine?

@agentlucky
Copy link
Author

Thanks for the quick reply. I kind of tried to do so but i failed. It's definitely too "much" for me. Hopefully you'll implement this into the plugin soon.
But thank you anyways...

@Schrank
Copy link
Member

Schrank commented Sep 10, 2015

This is horrible code and I hope, there is a better way to do this. But I think we should implement this. Might help for Billpay, etc. too.

@Schrank
Copy link
Member

Schrank commented Sep 10, 2015

btw, if you want to sponsor this implementation, it can be done a lot faster.

@tommy83
Copy link

tommy83 commented Feb 18, 2016

Do you see a time range to provide this update?
Or can you explain step by step how we can install your code to fix this problem?

@Schrank
Copy link
Member

Schrank commented Feb 18, 2016

As for the free part, I don't think this will happen in the near future unbfortunately.I can only speak for myself, but I have more paid work to do, then I can handle currently - I assume it is the same with @sprankhub.

If you are interested in contracting some one, please feel free to send us an email, this motivates a lot :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants