app/views/comable/orders/confirm.slim in comable_frontend-0.3.4 vs app/views/comable/orders/confirm.slim in comable_frontend-0.4.0

- old
+ new

@@ -14,46 +14,46 @@ .col-sm-4.comable-ship_address h2 = @order.class.human_attribute_name(:ship_address) = render 'comable/shared/address', address: @order.ship_address - - if @order.payment_method + - if @order.payment .col-sm-4.comable-payment_method h2 = @order.class.human_attribute_name(:payment_method) - = @order.payment_method.name + = @order.payment.name - - if @order.shipment_method + - if @order.shipment .row - .col-sm-12.comable-shipment_method + .col-sm-12.comable-shipment h2 = @order.class.human_attribute_name(:shipment_method) - = @order.shipment_method.name + = @order.shipment.name .row - .col-sm-12.comable-order_details + .col-sm-12.comable-order_items table thead tr th th - = @order.order_details.human_attribute_name(:price) + = @order.order_items.human_attribute_name(:price) th - = @order.order_details.human_attribute_name(:quantity) + = @order.order_items.human_attribute_name(:quantity) tbody - - @order.order_details.each do |order_detail| + - @order.order_items.each do |order_item| tr td .name - = order_detail.name_with_sku + = order_item.name_with_sku .caption - = order_detail.product.caption + = order_item.product.caption td.price - = number_to_currency order_detail.price + = number_to_currency order_item.price td.quantity - = number_with_delimiter order_detail.quantity + = number_with_delimiter order_item.quantity aside.col-sm-4 table thead tr @@ -64,9 +64,14 @@ tr th.text-right = @order.class.human_attribute_name(:item_total_price) td = number_to_currency @order.current_item_total_price + tr + th.text-right + = @order.class.human_attribute_name(:payment_fee) + td + = number_to_currency @order.current_payment_fee tr th.text-right = @order.class.human_attribute_name(:shipment_fee) td = number_to_currency @order.current_shipment_fee