Sha256: 216eeb01c374da450bb9d2c9a18819f07d646895c0fb836e3f9297b63d5e44a7
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 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"><%= Harpiya.t('store_credit.applicable_amount', amount: Harpiya::Money.new(@order.total_applicable_store_credit, { currency: @order.currency })).html_safe %></h3> <% if @order.covered_by_store_credit? %> <p><%= Harpiya.t('store_credit.remaining_amount', amount: @order.display_store_credit_remaining_after_capture).html_safe %></p> <% else %> <p><%= Harpiya.t('store_credit.additional_payment_needed', amount: @order.display_order_total_after_store_credit).html_safe %></p> <%= button_tag Harpiya.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"><%= Harpiya.t('store_credit.available_amount', amount: @order.display_total_available_store_credit).html_safe %></h2> <%= button_tag Harpiya.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
harpiya_frontend-4.3.0.alpha | app/views/harpiya/checkout/payment/_storecredit.html.erb |