Sha256: 9fa2427ab5d9fbd9f20270461460bd1240552418d9b5b5ae96437358454936fc

Contents?: true

Size: 1.34 KB

Versions: 46

Compression:

Stored size: 1.34 KB

Contents

<% if @order.using_store_credit? %>
  <div class="d-flex flex-column mb-5" data-hook="checkout_payment_store_credit_success">
    <h3 class="store-credit-title"><%= Spree.t('store_credit.applicable_amount', amount: Spree::Money.new(@order.total_applicable_store_credit, { currency: @order.currency })).html_safe %></h3>
    <% if @order.covered_by_store_credit? %>
      <p><%= Spree.t('store_credit.remaining_amount', amount: @order.display_store_credit_remaining_after_capture).html_safe %></p>
    <% else %>
      <p><%= Spree.t('store_credit.additional_payment_needed', amount: @order.display_order_total_after_store_credit).html_safe %></p>
      <%= button_tag Spree.t('store_credit.remove'), name: 'remove_store_credit', class: 'store-credit-button continue btn btn-lg btn-primary font-weight-bold text-uppercase align-self-start' %>
    <% end %>
  </div>

<% elsif @order.could_use_store_credit? %>
  <div class="d-flex align-items-center justify-content-between mb-5" data-hook="checkout_payment_store_credit_available">
    <h2 class="store-credit-title"><%= Spree.t('store_credit.available_amount', amount: @order.display_total_available_store_credit).html_safe %></h2>
    <%= button_tag Spree.t('store_credit.apply'), name: 'apply_store_credit', class: 'store-credit-button continue btn btn-lg btn-primary font-weight-bold text-uppercase' %>
  </div>
<% end %>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
spree_frontend-4.1.15 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.2.7 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.3.3 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.7.0 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.6.0 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.5.0 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.2.6 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.3.2 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.4.0 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.3.1 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.3.0 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.3.0.rc3 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.3.0.rc2 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.3.0.rc1 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.2.5 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.1.14 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.2.4 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.2.3.1 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.1.13.1 app/views/spree/checkout/payment/_storecredit.html.erb
spree_frontend-4.2.3 app/views/spree/checkout/payment/_storecredit.html.erb