Replace order information display for Confirm and Complete stages of checkout

This commit is contained in:
Rob H
2012-11-23 10:51:14 +11:00
parent 3d025bb709
commit ee482d520c
2 changed files with 9 additions and 7 deletions

View File

@@ -225,3 +225,8 @@ fieldset#product-distributor-details {
}
}
}
/* Alert for EFT Payment during checkout process */
div#eft-payment-alert {
border: 2px solid red;
}

View File

@@ -9,7 +9,7 @@
</div>
<div class="columns alpha six">
<h6><%= "Distributor Details" %> <%=# link_to "(#{t(:edit)})", checkout_state_path(:address) unless @order.completed? %></h6>
<h6><%= "Distributor Details" %> <%# link_to "(#{t(:edit)})", checkout_state_path(:address) unless @order.completed? %></h6>
<div class="address">
Distributor: <%= order.distributor.name %><br />
Address: <%= order.distributor.address.address1 + ", " + order.distributor.address.city %>
@@ -24,16 +24,13 @@
</div> -->
</div>
<div class="row steps-data">
<div class="columns alpha six">
<div class="columns alpha six" <% if order.payment_method.name.include? "EFT" %>id="eft-payment-alert"<% end %>>
<h6><%= t(:payment_information) %> <%= link_to "(#{t(:edit)})", checkout_state_path(:payment) unless @order.completed? %></h6>
<div class="payment-info">
<% if order.payment_method.name.include? "PayPal" %>
<div class="flash notice">Your payment via Paypal has been processed successfully.</div>
<div class="flash notice">Your payment via PayPal has been processed successfully.</div>
<% elsif order.payment_method.name.include? "EFT" %>
<span style="font-weight: bold">Please pay by direct debit:</span><br /><br />
Eaterprises Australia<br />
BSB: XXX-XXX<br />
Acct: XXXXXXX
<span><%= order.payment_method.description.html_safe %></span>
<% elsif order.creditcards.empty? == false %>
<span class="cc-type">
<%= image_tag "creditcards/icons/#{order.creditcards.first.cc_type}.png" %>