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

How to add DHL custom data to order totals #1

Closed
OvalMedia opened this issue Jun 1, 2021 · 1 comment
Closed

How to add DHL custom data to order totals #1

OvalMedia opened this issue Jun 1, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@OvalMedia
Copy link

I have a shop where orders, invoices, shipments and creditmemos are generated as PDF (Mageplaza Pdfinvoice module).
Additional DHL fees like "Wunschzustellung" don't show up in those order totals. The total sum ist correct but the individual order total items don't show up on the PDF.

The PDF generator simply takes the items from Magento\Sales\Block\Order\Totals::getTotals as expected.

How could I inject the custom totals from this module in there?

Thank you

@mam08ixo mam08ixo transferred this issue from netresearch/dhl-shipping-m2 Jun 1, 2021
@mam08ixo mam08ixo added the bug Something isn't working label Jun 1, 2021
@mam08ixo
Copy link
Contributor

mam08ixo commented Jun 1, 2021

Thank you for reporting the issue. Missing custom total on PDFs turned out to be a regression in DHL Shipping v2.

Run composer update --with-dependencies dhl/shipping-m2 to pull in the netresearch/module-shipping-ui:2.0.2 dependency that fixes the issue for Magento sales PDFs.

Given that the 3rd party extension considers the totals defined for the native PDFs, then it should also work there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants