Display voucher section if connected to VINE

This commit is contained in:
Gaetan Craig-Riou
2024-10-29 13:58:24 +11:00
committed by Rachel Arnould
parent 12cf62c2ff
commit d4d995851f

View File

@@ -1,5 +1,5 @@
.medium-6#checkout-payment-methods
- if @order.distributor.vouchers.present?
- if @order.distributor.vouchers.present? || @order.distributor.connected_apps.vine.present?
%div.checkout-substep
= render partial: "checkout/voucher_section", locals: { order: @order, voucher_adjustment: @order.voucher_adjustments.first }