Hi there,
we are on Imact Theme
On Cart page it has section We accept under Checkout button which shows main payment methods icons
As we have additional payment methods (Afterpay etc.) i wonder how to add it’s icons there.
We added them to footer but no luck with this Cart page section and it seems to be weird having mismatch.
Hi @Katekorn
This is Richard from PageFly - Shopify Page Builder App
You will need to enable those payment methods, and after that you can add this code and where you want it to show in cart page
{% assign enabled_payment_types = 'ideal,visa,maestro,master,american_express,bancontact' | remove: ' ' | split: ',' %}
{% for type in enabled_payment_types %}
- {{ type | payment_type_svg_tag: class: 'icon icon--full-color' }}
{%- endfor -%}
You can try the main-cart.liquid file.
Hope this can help you solve the issue
Best regards,
Richard | PageFly
1 Like
Thanks Richard,
I ended up adding part of code you provided:
{% assign enabled_payment_types = ‘visa,master,jcb,afterpay,poli’ | remove: ’ ’ | split: ‘,’ %}
So it looks like that now:
{% assign enabled_payment_types = 'visa,master,jcb,afterpay,poli' | remove: ' ' | split: ',' %}
{% for type in enabled_payment_types %}
{{- type | payment_type_svg_tag -}}
{%- endfor -%}
works fine, thanks for your help!