Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Update column header to reflect product name (#34)
Browse files Browse the repository at this point in the history
* Update column header to reflect product name

The column name was incorrectly event, as this column contains the `Product Name` per https://github.com/WISVCH/payments/blob/master/src/main/resources/templates/mail/wisvch.html#L63

* Add price formatting & additional event information
  • Loading branch information
TimvdLippe authored Mar 16, 2017
1 parent 65e6940 commit bfa636b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/main/resources/templates/mail/wisvch.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
</td>
</tr>
<tr>
<td style=" padding: 10px 0;">
<p th:text="${order.getPublicReference()}">Order reference: #reference</p>
<td style="padding: 10px 0;">
<p th:text="${'Order reference: '+ order.getPublicReference()}">Order reference: #reference</p>
<p>This is your order confirmation. We have received your payment in good order.</p>
</td>
</tr>
Expand All @@ -46,11 +46,15 @@
<tr style="">
<th align="left" valign="top"
style="padding: 8px; border-bottom: 2px solid #ccc;">
<span>Event</span>
<span>Product Name</span>
</th>
<th align="left" valign="top"
style="border-bottom: 2px solid #ccc; padding: 8px;">
<span>Name</span>
<span>Description</span>
</th>
<th align="left" valign="top"
style="border-bottom: 2px solid #ccc; padding: 8px;">
<span>Event</span>
</th>
<th align="left" valign="top"
style="border-bottom: 2px solid #ccc; padding: 8px;">
Expand All @@ -61,8 +65,9 @@
<tbody class="tickets">
<tr th:each="product : ${order.getProducts()}">
<td th:text="${product.getName()}">Product Name</td>
<td th:text="${order.getName()}">User Name</td>
<td th:text="${product.getPrice()}">Product price</td>
<td th:text="${product.getDescription()}">Product description</td>
<td th:text="${product.getProductGroup().getName()}">Product group</td>
<td th:text="${'&euro;'+ #numbers.formatDecimal(product.getPrice(), 0, 'COMMA', 2, 'POINT')}">Product price</td>
</tr>
</tbody>
</table>
Expand All @@ -89,4 +94,4 @@
</tbody>
</table>
</body>
</html>
</html>

0 comments on commit bfa636b

Please sign in to comment.