Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fix displaying the gift card payment on the checkout complete page (#13195)
Łukasz Adamczyk5cf1859dfeef
diff --git a/core/app/views/spree/shared/_payment.html.erb b/core/app/views/spree/shared/_payment.html.erbindex 8da8f5e7f1..bc425c0cb6 100644--- a/core/app/views/spree/shared/_payment.html.erb+++ b/core/app/views/spree/shared/_payment.html.erb@@ -13,12 +13,14 @@</div><% elsif source.is_a?(Spree::StoreCredit) %><% if source.originator_type == 'Spree::GiftCard' %>- <div class="d-flex align-items-center">- <%= icon('gift', height: 30, class: 'mr-3 text-muted opacity-50') %>- <div>- <p class="mb-1"><%= Spree.t(:gift_card) %>: <strong><%= source.originator.code.upcase %></strong></p>- <%= @order.display_gift_card_total %>- </div>+ <% if respond_to?(:heroicon) %>+ <%= heroicon('gift', options: { style: 'margin-right: 0 !important;' }) %>+ <% else %>+ <%= icon('gift', height: 30) %>+ <% end %>+ <div>+ <p class="mb-1"><%= Spree.t(:gift_card) %>: <strong><%= source.originator.code.upcase %></strong></p>+ <%= @order.display_gift_card_total %></div><% elsif payment.payment_method.present? && payment_method_icon_tag(payment.payment_method.payment_icon_name).present? %><div class="d-flex flex align-items-center items-center">