<%= render layout: 'plugins/ecommerce/layouts/ecommerce', locals: {} do %>

Order: <%= @order.slug %>

Customer Info

billing address

<% detail = @order.get_meta("billing_address") %>

shipping address

<% detail = @order.get_meta("shipping_address") %>

Products and Payments

<%= render partial: 'plugins/ecommerce/partials/table_order_products', locals: {order: @order} %>
Type Payment
<%= @order.payment_method.name rescue 'Not Payment' %> <% if @order.get_meta("payment")[:amount].to_f > 0 && @order.unpaid? %> Pay Now or Cancel Order <% else %> <%= raw @order.the_pay_status %> <% end %>
Order Shipped Shipped Date URL Tracking
<%= @order.shipping_method.name rescue 'Not Shipped Assigned' %> <%= @order.details.shipped_at || 'Not Shipped' %> <%= @order.the_url_tracking %>
<%#= debug @order.meta %> <% end %>