-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix incorrect logo on order print page #34943
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 incorrect logo on order print page #34943
Conversation
Hi @ihor-sviziev. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run Integration Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Add test coverage
7d4489e
to
f6a6289
Compare
@magento run Integration Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
…settings does not reflect on frontend my account order
Fix static test failure
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
4 similar comments
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ihor-sviziev.
Thanks for the good fix.
I believe that we could inject theme LogoPathResolver
as fallback class and call getPath
instead of duplicate part of code.
What do you think?
@Den4ik I thought about it as well, but it doesn't get store id from the current order, but from the store manager (there might be some edge cases when you're in admin, for instance), so I decided to do it like that. |
@ihor-sviziev Wrote direct message in slack |
As we discussed in Slack - it might be improved to reduce the code duplication, but I don't have enough time for that now. |
Since all the builds are passed moving it to Pending Review column. |
Hi @Den4ik, thank you for the review.
|
✔️ QA Passed Preconditions:
Manual testing scenario:
Before: ✖️ The old image was only getting displayed while printing up. After: ✔️ The new image is getting displayed while printing up. Additionally, having multi stores - login as different customer of different store and validate that has its relevant image printable but not the default website's custom image. |
Description (*)
This PR adds a fallback to a header logo in case if the sales HTML logo() isn't declared.
Originally the issue was introduced in 4531c76
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)