-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Shipment email not sent when submitted from Admin Order view despite being enabled in store configuration #39861
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
Comments
Hi @rns-nonaka-enagic. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-November. Thank you for working on this issue.
|
Hello @rns-nonaka-enagic , Thank you for your report and collaboration. We attempted to reproduce the issue in our latest version 2.4 develop but were unable to do so. Please find the attached screenshot for reference. Steps to Reproduce: Set up a multi-store configuration where the default store has shipment emails disabled. We followed the provided preconditions and steps but did not encounter any issues. Could you please recheck in the latest version of Magento and let us know if we are missing any steps to reproduce this issue? Therefore, we are marking this ticket as "Issue: Needs Update." Thank you! |
@engcom-November First, create two stores. Then, disable the Shipment email in the Main Website. Enable the Shipment email in the US Website. Next, place an order from the frontend. After that, open the order in the backend and perform the shipment. During the shipment, check the Email Copy of Shipment option and select Submit Shipment. At this point, the Shipment email will not be sent, which confirms the problem. Cause in the source code Since the Store ID is not specified, it falls back to the default store configuration. |
Hello @rns-nonaka-enagic , Thank you for your report and collaboration. We attempted to reproduce the issue in the latest 2.4-develop instances, We are able to reproduce the issue. Please refer to the attached screenshot for details. Steps to Reproduce:
We followed the preconditions and steps as provided and encountered the issue. Therefore, we are marking this ticket as "Issue: Confirmed." Thank you! |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-14563 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-November. Thank you for verifying the issue. |
@magento I am working on this |
…r view despite being enabled in store configuration - adding storeId to canSendNewShipmentEmail method
…r view despite being enabled in store configuration - copyright
Preconditions and environment
2.4.7-p5
Steps to reproduce
Expected result
The system should send a shipment confirmation email as it is enabled in the store configuration where the order was placed.
Actual result
No shipment confirmation email is sent because the system checks the default store configuration instead of the store configuration where the order was placed.
Additional information
Root cause analysis
In Save.php at line 170, the shipment email sending condition is checked using:
The
canSendNewShipmentEmail()
method is called without passing the store ID parameter. This causes the system to check the configuration of the default store instead of the store where the order was placed.The correct implementation should pass the order's store ID to this method:
This issue affects multi-store setups where different stores have different email configuration settings.
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: