Skip to content

Commit

Permalink
Release 4.0.54
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrowanwallee committed Aug 8, 2023
1 parent 8d1b182 commit 1567eb4
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import template from './payment-method.html.twig';

Shopware.Component.override('component_payment_method_description', {
template
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{% block component_payment_method_description %}
<div class="payment-method-description">
<strong>{{ payment.translated.name }}</strong>
{% if payment.translated.description %}
{% set paymentDescription = payment.translated.description|raw %}
{% set paymentDescriptionTitle = payment.translated.description|striptags|raw %}

{% if not payment.id is same as(selectedPaymentMethodId) %}
{% set paymentDescription = (paymentDescription|length > 75 ? paymentDescription[:75] ~ ' ...' : paymentDescription) %}
{% endif %}

{% block component_payment_method_description_text %}
<p title="{{ paymentDescriptionTitle }}">{{ paymentDescription }}</p>
{% endblock %}
{% endif %}
<p>additional text here</p>
</div>
{% endblock %}

0 comments on commit 1567eb4

Please sign in to comment.