-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d1b182
commit 1567eb4
Showing
4 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45.3 KB
docs/en/resource/payment-method-configuration-create-availability-rule.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
src/Resources/app/storefront/src/sw-payment-method-override/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
}); |
18 changes: 18 additions & 0 deletions
18
src/Resources/app/storefront/src/sw-payment-method-override/payment-method.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |