Skip to content

Conversation

sreichel
Copy link
Contributor

Description (*)

See #4620 (comment)

Fixed Issues (if relevant)

@github-actions github-actions bot added Template : admin Relates to admin template Component: Sales Relates to Mage_Sales Component: Adminhtml Relates to Mage_Adminhtml translations Relates to app/locale labels Feb 10, 2025
@sreichel sreichel requested a review from addison74 February 10, 2025 15:19
@sreichel sreichel added this to the 20.13.0 milestone Feb 10, 2025
@sreichel sreichel closed this Feb 10, 2025
@OpenMage OpenMage deleted a comment from sreichel Feb 12, 2025
@OpenMage OpenMage deleted a comment from sreichel Feb 12, 2025
@OpenMage OpenMage deleted a comment from sreichel Feb 12, 2025
@OpenMage OpenMage deleted a comment from sreichel Feb 12, 2025
@OpenMage OpenMage deleted a comment from sreichel Feb 12, 2025
@OpenMage OpenMage deleted a comment from sreichel Feb 12, 2025
@sreichel sreichel modified the milestones: 20.13.0, 20.14.0 Mar 7, 2025
@sreichel sreichel reopened this Mar 7, 2025
@sreichel sreichel requested a review from kiatng March 12, 2025 23:57
kiatng
kiatng previously approved these changes Mar 14, 2025
@addison74
Copy link
Contributor

This PR needs changes before merging.

@sreichel sreichel removed this from the 20.14.0 milestone Mar 14, 2025
@sreichel
Copy link
Contributor Author

For change wordings please make suggestions via review (select lines & ctrl+h).

<td class="value"><strong><span id="order_status"><?php echo $_order->getStatusLabel() ?></span></strong></td>
</tr>
<tr>
<td class="label"><label><?php echo Mage::helper('sales')->__('Order Confirmation Email') ?></label></td>
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer a two-word label. These two variants are more appropriate.

Variant 1

Suggested change
<td class="label"><label><?php echo Mage::helper('sales')->__('Order Confirmation Email') ?></label></td>
<td class="label"><label><?php echo Mage::helper('sales')->__('Email Confirmation') ?></label></td>

Variant 2

Suggested change
<td class="label"><label><?php echo Mage::helper('sales')->__('Order Confirmation Email') ?></label></td>
<td class="label"><label><?php echo Mage::helper('sales')->__('Order Confirmation') ?></label></td>

I asked Copilot and Chatgpt for their opinions, both argued that "Order Confirmation" is more appropriate, as it covers confirmations sent by email, SMS, phone. Personally, I would prefer Email Confirmation because it specifies the confirmation method available in OpenMage.

If we are analyzing the label names in that block that obviously refer to the order, then the word "Order" should be removed from the "Order Date" and "Order Status" forms. Here is what it would look like in my opinion

order_block

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I disagree on that.

  • "Email" suffix ... its no SMS, fax, ...
  • "Order" prefix ... this block is displayed for orders, invoices, shippings ... so it could be missleading w/o it.

I really thought about how to name it - and it was also named "order confirmation email" before.

@addison74
Copy link
Contributor

Regarding the positioning of the copy icon, the issue is still visible in the legacy theme.

copy_icon

Copy link

@sreichel sreichel closed this Apr 23, 2025
@sreichel sreichel reopened this Oct 3, 2025
@sreichel sreichel requested a review from Copilot October 3, 2025 23:09
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request improves the visibility and presentation of the order confirmation email status in the admin interface by moving it from the order header to a dedicated row in the order information table and updating the visual styling of copy icons.

  • Moves email sent status from order header to dedicated table row with clearer labels
  • Updates CSS styling to float copy icons to the right for better visual alignment
  • Refactors code for better readability by removing inline conditional logic

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
app/design/adminhtml/default/default/template/sales/order/view/info.phtml Relocates email status from header to table row, adds new translation strings, improves code formatting
app/locale/en_US/Mage_Sales.csv Adds translation strings for "Order Confirmation Email", "Sent", and "Not sent"
skin/adminhtml/default/default/boxes.css Updates copy icon styling with better margins and right float positioning
skin/adminhtml/default/openmage/override.css Adds right float positioning for copy icons
skin/adminhtml/default/openmage/scss/override.scss Adds right float positioning for copy icons in SCSS source

Copy link

sonarqubecloud bot commented Oct 3, 2025

Please retry analysis of this Pull-Request directly on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Adminhtml Relates to Mage_Adminhtml Component: Sales Relates to Mage_Sales enhancement Template : admin Relates to admin template translations Relates to app/locale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy feature in the view order page
3 participants