Skip to content

Commit

Permalink
Add order comment in backend module (#457)
Browse files Browse the repository at this point in the history
* [TASK] Include order comment in backend view

Show the comment which a customer can enter during
the checkout process of an order.

Fixes #358

* [TASK] Unify label styling in backend view

Styling the label of the tax identification number
bold as done with other labels.
  • Loading branch information
rintisch authored Mar 24, 2024
1 parent 9845b71 commit 679e869
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Resources/Private/Partials/Backend/Order/Show/Address.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
<f:if condition="{address.taxIdentificationNumber}">
<br/>
<div>
<strong><f:translate key="tx_cart_domain_model_order_address.tax_identification_number"/>:<br/></strong>
{address.taxIdentificationNumber}
</div>
</f:if>

</div>
</f:section>

Expand Down
7 changes: 7 additions & 0 deletions Resources/Private/Templates/Backend/Order/Order/Show.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
<f:render partial="Backend/Order/Show/Address" arguments="{orderItem: orderItem}"/>
</div>

<f:if condition="{orderItem.comment}">
<div style="padding-bottom: 20px;">
<strong><f:translate key="tx_cart_domain_model_order_item.comment"/>:</strong><br/>
{orderItem.comment -> f:sanitize.html()}
</div>
</f:if>

<div style="padding-bottom: 20px;">
<f:render partial="Backend/Order/Show/Cart" arguments="{orderItem: orderItem}"/>
</div>
Expand Down

0 comments on commit 679e869

Please sign in to comment.