app/views/plugins/ecommerce/front/orders/show.html.erb in camaleon_ecommerce-1.2 vs app/views/plugins/ecommerce/front/orders/show.html.erb in camaleon_ecommerce-1.2.1
- old
+ new
@@ -1,10 +1,16 @@
<% order ||= @order %>
<div class="order_details">
<% unless defined?(as_partial) %>
+ <%= raw ecommerce_draw_breadcrumb %>
<h1><%= t('.title', default: 'Order Details') %>: <%= order.slug %></h1>
<% end %>
+ <div class="basic_info">
+ <% if order.received_at.present? %><b><%= t('.received_at', default: 'Received At') %>: </b> <%= order.received_at %><br> <% end %>
+ <b><%= t('.created_at', default: 'Created At') %>: </b> <%= order.created_at %><br>
+ <% if order.shipped_at.present? %><b><%= t('.shipped_at', default: 'Shipped At') %>: </b> <%= order.shipped_at %><br> <% end %>
+ </div>
<div>
<h4><%= t('.customer_info', default: 'Customer Info') %></h4>
<ul class="ec-list-orders-address">
<li><strong><%= t('.name', default: 'Name') %>:</strong> <span> <%= order.user.fullname %></span></li>
<li><strong><%= t('.email', default: 'Email') %>:</strong> <span> <%= order.user.email %></span></li>
@@ -107,10 +113,10 @@
<td><%= raw order.the_status %></td>
</tr>
<% if defined?(as_partial) %>
<tr>
<td>
- <%= raw order.get_meta('payment_data', {}).map { |k, v| "<b>#{k.to_s.titleize}</b>: #{v}" }.join('<br>') %>
+ <%= raw (order.get_meta('payment_data') || {}).map { |k, v| "<b>#{k.to_s.titleize}</b>: #{v}" }.join('<br>') %>
</td>
</tr>
<% end %>
</tbody>
</table>