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

Cannot print invoice #48

Open
reense opened this issue Aug 23, 2024 · 0 comments
Open

Cannot print invoice #48

reense opened this issue Aug 23, 2024 · 0 comments

Comments

@reense
Copy link

reense commented Aug 23, 2024

Good morning,

I'm trying to print an invoice via your module (route: ubstitute/order/printInvoice/id/12345/), however I'm getting the following exception:

[2024-08-23T08:48:00.866138+00:00] .CRITICAL: Magento\Framework\Exception\LocalizedException: Please correct the country code: Nederland. in /data/web/staging_releases/releases/xxxxxxx/vendor/magento/module-directory/Model/ResourceModel/Country.php:72
Stack trace:
#0 /data/web/staging_releases/releases/xxxxxxx/vendor/magento/module-directory/Model/Country.php(87): Magento\Directory\Model\ResourceModel\Country->loadByCode()
#1 /data/web/staging_releases/releases/xxxxxxx/vendor/magento/module-customer/Block/Address/Renderer/DefaultRenderer.php(176): Magento\Directory\Model\Country->loadByCode()
#2 /data/web/staging_releases/releases/xxxxxxx/vendor/dealer4dealer/module-substituteorders/Model/Order/Address/Renderer.php(74): Magento\Customer\Block\Address\Renderer\DefaultRenderer->renderArray()
#3 /data/web/staging_releases/releases/xxxxxxx/vendor/dealer4dealer/module-substituteorders/Block/Order/PrintOrder/Invoice.php(135): Dealer4Dealer\SubstituteOrders\Model\Order\Address\Renderer->format()
#4 /data/web/staging_releases/releases/xxxxxxx/var/view_preprocessed/pub/static/vendor/dealer4dealer/module-substituteorders/view/frontend/templates/order/print/invoice.phtml(1): Dealer4Dealer\SubstituteOrders\Block\Order\PrintOrder\Invoice->getFormattedAddress()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant