Sha256: 666769f2074ce0059f066bcc754381b35995ac44bfff0d6536e4c49e8214689a

Contents?: true

Size: 1017 Bytes

Versions: 34

Compression:

Stored size: 1017 Bytes

Contents

<% if @order.using_store_credit? %>
  <div class="alert alert-success text-center" data-hook="checkout_payment_store_credit_success">
    <h3><%= Spree.t('store_credit.applicable_amount', amount: Spree::Money.new(@order.total_applicable_store_credit, { currency: @order.currency })) %></h3>
    <% if @order.covered_by_store_credit? %>
      <p><%= Spree.t('store_credit.remaining_amount', amount: @order.display_store_credit_remaining_after_capture) %></p>
    <% else %>
      <p><%= Spree.t('store_credit.additional_payment_needed', amount: @order.display_order_total_after_store_credit) %></p>
    <% end %>
  </div>

<% elsif @order.could_use_store_credit? %>
  <div class="alert alert-info text-center" data-hook="checkout_payment_store_credit_available">
    <h2><%= Spree.t('store_credit.available_amount', amount: @order.display_total_available_store_credit) %></h2>
    <%= button_tag Spree.t('store_credit.apply'), name: 'apply_store_credit', class: 'continue btn btn-lg btn-primary' %>
  </div>
<% end %>

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
goca-spree-frontend-3.1.14.rails.5.0.1 app/views/spree/checkout/payment/_storecredit.html.erb
goca-spree-frontend-3.1.14.rails.5.0 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.2.9 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.1.14 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.2.8 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.1.13 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.2.7 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.1.12 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.2.6 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.1.11 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.1.10 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.2.5 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.1.9 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.2.4 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.1.8 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.1.7 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.2.3 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.2.2 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.1.6 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-3.1.5 app/views/spree/checkout/payment/_storecredit.html.erb