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

Fix wrong payment info template paths #1201

Merged
merged 1 commit into from
Feb 21, 2021

Conversation

mdlonline
Copy link
Contributor

@mdlonline mdlonline commented Sep 8, 2020

Description (*)

In some Payment block classes the 'toPdf' function sets a wrong template path. These templates are present in another folder.

Manual testing scenarios (*)

  1. Create order/invoice
  2. Make sure the email is being sent with pdf attached
  3. Check if payment info is added to attached pdf, and no logs about invalid template files are created.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)

@github-actions github-actions bot added the Component: Payment Relates to Mage_Payment label Sep 8, 2020
@kkrieger85
Copy link
Contributor

We could discuss if this was intended to have the possibility to use different layout styles.

But defining a default existing template is better than having no template for pdf

Copy link
Contributor

@kkrieger85 kkrieger85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@sreichel sreichel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested.

@sreichel sreichel merged commit c7d316a into OpenMage:1.9.4.x Feb 21, 2021
@sreichel sreichel added the bug label Feb 21, 2021
@sreichel sreichel added this to the Release 19.4.12 / 20.0.8 milestone Feb 21, 2021
@github-actions
Copy link
Contributor

Unit Test Results

1 files  1 suites   0s ⏱️
0 tests 0 ✔️ 0 💤 0 ❌
2 runs  2 ✔️ 0 💤 0 ❌

Results for commit c7d316a.

@rfeese
Copy link
Contributor

rfeese commented Apr 13, 2021

I think this change caused a regression in rendering payment information as PDF. This change causes the toPdf methods to use the HTML templates instead of the PDF templates. This causes invalid PDF rendering for the payment methods.

The PDF template files do exist:
https://github.com/OpenMage/magento-lts/tree/1.9.4.x/app/design/adminhtml/default/default/template/payment/info/pdf

As far as I know, there is no option for including a PDF attachment on invoice emails. Was the submitter using an add-on module for email attachments? Perhaps there is a bug in the add-on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Component: Payment Relates to Mage_Payment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants