Files
openfoodnetwork/app/views/spree/order_mailer/_shipping.html.haml

60 lines
1.6 KiB
Plaintext

- if @order.shipping_method.andand.require_ship_address
/ Delivery details
%p.callout
%strong
- if @order.shipping_method.andand.name
#{@order.shipping_method.name.html_safe}
- else
Delivery details
- if @order.order_cycle.andand.pickup_time_for(@order.distributor)
%h4
Delivery on:
%strong #{@order.order_cycle.pickup_time_for(@order.distributor)}
- if @order.shipping_method.andand.description
%p
%em #{@order.shipping_method.description.html_safe}
%br  
- if @order.ship_address
%h4 Delivery address:
%p
#{@order.ship_address.full_name}
%br
#{@order.ship_address.full_address}
%br
#{@order.ship_address.phone}
%br  
- else
/ Collection details
%p.callout
%strong
- if @order.shipping_method.andand.name
#{@order.shipping_method.name.html_safe}
- else
Collection details
- if @order.order_cycle.andand.pickup_time_for(@order.distributor).present?
%h4
Ready for collection:
%strong #{@order.order_cycle.pickup_time_for(@order.distributor)}
- if @order.shipping_method.andand.description.present?
%p
%em #{@order.shipping_method.description.html_safe}
%br  
- if @order.ship_address.full_address
%p
%strong Collecting from:
%br
#{@order.ship_address.full_address}
- if @order.order_cycle.andand.pickup_instructions_for(@order.distributor).present?
%p
%strong Collection instructions:
%br
#{@order.order_cycle.pickup_instructions_for(@order.distributor)}