diff options
| author | Saumit <justsaumit@protonmail.com> | 2025-09-27 02:14:26 +0530 |
|---|---|---|
| committer | Saumit <justsaumit@protonmail.com> | 2025-09-27 02:14:26 +0530 |
| commit | 82e03978b89938219958032efb1448cc76baa181 (patch) | |
| tree | 626f3e54d52ecd49be0ed3bee30abacc0453d081 /src/email/views/confirmation.erb | |
Initial snapshot - OpenTelemetry demo 2.1.3 -f
Diffstat (limited to 'src/email/views/confirmation.erb')
| -rw-r--r-- | src/email/views/confirmation.erb | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/email/views/confirmation.erb b/src/email/views/confirmation.erb new file mode 100644 index 0000000..aba297d --- /dev/null +++ b/src/email/views/confirmation.erb @@ -0,0 +1,53 @@ +<!DOCTYPE html> +<!-- + Copyright 2020 Google LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<html> + <head> + <title>Your Order Confirmation</title> + <link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet"> + </head> + <style> + body{ + font-family: 'DM Sans', sans-serif; + } + </style> + <body> + <h2>Your Order Confirmation</h2> + <p>Thanks for shopping with us!<p> + <h3>Order ID</h3> + <p><%= order.order_id %></p> + <h3>Shipping</h3> + <p><%= order.shipping_tracking_id %></p> + <p><%= order.shipping_cost.units %>.<%= order.shipping_cost.nanos %> <%= order.shipping_cost.currency_code %></p> + <p><%= order.shipping_address.street_address_1 %>, <%= order.shipping_address.street_address_2 %>, <%= order.shipping_address.city %>, <%= order.shipping_address.country %> <%= order.shipping_address.zip_code %></p> + <h3>Items</h3> + <table style="width:100%"> + <tr> + <th>Item No.</th> + <th>Quantity</th> + <th>Price</th> + </tr> + <% order.items.each do |item| %> + <tr> + <td><%= item.item.product_id %></td> + <td><%= item.item.quantity %></td> + <td><%= item.cost.units %>.<%= item.cost.nanos %> <%= item.cost.currency_code %></td> + </tr> + <% end %> + </table> + </body> +</html> |
