Merge pull request #12465 from MrBowmanXD/mirror

Allow return or line break in shipping / payment method description
This commit is contained in:
Maikel
2024-05-23 09:10:13 +10:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@
%div.checkout-input{"data-shippingmethod-target": "shippingMethodDescription", "data-shippingmethodid": shipping_method.id , style: "display: #{ship_method_is_selected ? 'block' : 'none'}" }
#distributor_address.panel
- if shipping_method.description.present?
%span #{shipping_method.description}
= simple_format(html_escape(shipping_method.description))
= f.error_message_on :shipping_method, standalone: true

View File

@@ -29,7 +29,7 @@
.paymentmethod-container{"data-paymentmethod-id": "#{payment_method.id}", style: "display: #{payment_method.id == selected_payment_method ? "block" : "none"}"}
- if payment_method.description && !payment_method.description.empty?
.paymentmethod-description.panel
#{payment_method.description}
= simple_format(html_escape(payment_method.description))
.paymentmethod-form
= render partial: "checkout/payment/#{payment_method.method_type}", locals: { payment_method: payment_method, f: f }