Sha256: 7a3f6b21472e257b214b4a1701f332930d9b4ea8032091e8d6563930f0a3e596
Contents?: true
Size: 1.43 KB
Versions: 3
Compression:
Stored size: 1.43 KB
Contents
<%= render plugin_view('partials/cart_widget') %> <h2><%= t('.title', default: 'My Orders') %></h2> <table id="table-shopping-cart" class="table"> <thead> <tr> <th><%= t('.id', default: 'ID') %></th> <th><%= t('.status', default: 'Status') %></th> <th><%= t('.products', default: 'Products') %></th> <th><%= t('.total_amount', default: 'Total Amount') %></th> <th><%= t('.coupon', default: 'Coupon') %></th> <th><%= t('.paid_amount', default: 'Paid Amount') %></th> <th><%= t('.order_date', default: 'Order Date') %></th> <th><%= t('.method', default: 'Payment Method') %></th> <th style="width: 90px"></th> </tr> </thead> <tbody> <% @orders.each do |order| %> <tr> <td><%= order.slug %></td> <td><%= raw order.the_status %></td> <td> <% order.product_items.each do |item| %> <%= item.qty %> x <%= item.cache_the_title %> (<%= item.cache_the_price %>) <br> <% end %> </td> <td><%= order.cache_the_sub_total %></td> <td><%= order.cache_the_discounts %></td> <td><%= order.cache_the_total %></td> <td><%= order.paid_at %></td> <td><%= order.payment_method.name rescue '' %></td> <td> <a href="<%= plugins_ecommerce_order_show_path(order: order.slug) %>" class="btn btn-default btn-xs"><%= t('.view', default: 'View') %></a> </td> </tr> <% end %> </tbody> </table>
Version data entries
3 entries across 3 versions & 1 rubygems