created snippet for payment list and added it below of the buy button in the card drawer

pull/1/head
alexanderroese 2024-05-31 12:19:18 +02:00
parent a114231461
commit c297636443
3 changed files with 13 additions and 14 deletions

View File

@ -97,20 +97,7 @@
{{ form | payment_button }}
{%- endif -%}
<!-- custom code -->
<div style="display: flex; flex-direction: column; align-items: center; padding-top: 4px">
<span>Sicher Bezahlen mit</span>
<ul class="list list-payment" style="padding-top: 0px;" role="list">
{%- for type in shop.enabled_payment_types -%}
<li class="list-payment__item">
{{ type | payment_type_svg_tag: class: 'icon icon--full-color' }}
</li>
{%- endfor -%}
</ul>
</div>
<!-- end -->
{% render 'shx-payment-list' %}
</div>
{%- endform -%}
</product-form>

View File

@ -526,6 +526,8 @@
{{ 'sections.cart.checkout' | t }}
</button>
</div>
{% render 'shx-payment-list' %}
</div>
</div>
</div>

View File

@ -0,0 +1,10 @@
<div style="display: flex; flex-direction: column; align-items: center; padding-top: 4px">
<span>Sicher Bezahlen mit</span>
<ul class="list list-payment" style="padding-top: 0px;" role="list">
{%- for type in shop.enabled_payment_types -%}
<li class="list-payment__item">
{{ type | payment_type_svg_tag: class: 'icon icon--full-color' }}
</li>
{%- endfor -%}
</ul>
</div>