Skip to content

Commit

Permalink
[PW-4128] Hiding PM and Stored PM group title if the other group is e…
Browse files Browse the repository at this point in the history
…mpty (#138)
  • Loading branch information
acampos1916 authored Feb 23, 2021
1 parent e3dc60f commit 777a96a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
6 changes: 5 additions & 1 deletion Resources/frontend/less/all.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@

.alert.is--adyen-error {
margin-bottom: 12px;
}
}

.adyen-method-section-title {
text-indent: 1em;
}
22 changes: 14 additions & 8 deletions Resources/views/frontend/checkout/change_payment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,26 @@

{block name='frontend_checkout_payment_content_adyen_stored_payment_methods'}
{if !empty($storedPaymentMethods)}
<h4 class="payment--method-headline panel--title is--underline">
{s namespace='adyen/checkout/payment' name='storedPaymentMethodTitle'}{/s}
</h4>
{if !empty($paymentMethods)}
<h4 class="payment--method-headline panel--title is--underline adyen-method-section-title">
{s namespace='adyen/checkout/payment' name='storedPaymentMethodTitle'}{/s}
</h4>
{/if}
{assign var=sPayments value=$storedPaymentMethods}
{$smarty.block.parent}
{/if}
{/block}

{block name='frontend_checkout_payment_content_adyen_payment_methods'}
<h4 class="payment--method-headline panel--title is--underline">
{s namespace='adyen/checkout/payment' name='paymentMethodTitle'}{/s}
</h4>
{assign var=sPayments value=$paymentMethods}
{$smarty.block.parent}
{if !empty($paymentMethods)}
{if !empty($storedPaymentMethods)}
<h4 class="payment--method-headline panel--title is--underline adyen-method-section-title">
{s namespace='adyen/checkout/payment' name='paymentMethodTitle'}{/s}
</h4>
{/if}
{assign var=sPayments value=$paymentMethods}
{$smarty.block.parent}
{/if}
{/block}

{/block}
Expand Down

0 comments on commit 777a96a

Please sign in to comment.