Add payment icons underneath checkout button on cart page

Topic summary

Goal: show payment icons beneath the Cart page checkout button in the Dawn theme.

Implementation (confirmed working):

  • Edit Online Store → Theme → Edit code → Sections/main-cart-footer.liquid.
  • Insert after the checkout button markup (e.g., around line 65) a Liquid loop rendering icons:
    {% 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 %}
  • Notes: Liquid is Shopify’s templating language; payment_type_svg_tag outputs the provider SVG icons.

Spacing tweak: add CSS (e.g., margin-top: 10px) to the icons container to increase space below the button; value can be adjusted.

Evidence/attachments: screenshots were provided showing the file path, insertion point, and the resulting icons under the button.

Status/outcome:

  • Original requester confirmed the solution works and spacing was adjusted via CSS.
  • Another participant reported the code didn’t work for them; no troubleshooting details or resolution were provided.
  • Community feedback indicated this should be the accepted solution. The main issue is effectively resolved for the original case.
Summarized with AI on December 14. AI used: gpt-5.

Hello there,

How do I add the payment icons underneath the checkout button on my cart page?
I use the dawn theme.

This is the code I’ve added in my footer which I also want to add underneath my checkout button:

    {% 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 -%}

Kind regards,

Yordi

@YordiMNL - you can add it in cart.liquid page

Thanks for your response @suyash1

But where exactly?

@YordiMNL - you will need to check the liquid code for the checkout code, then you can put your code after it

checkout code most probably would be the button code

Hello @YordiMNL

It’s GemPages support team and glad to support you today.

I would like to give you a solution to support you:

  1. Go to Online Store → Theme → Edit code:

  1. Open your Sections/main-cart-footer.liquid theme file

  2. Find line 65 and added code after:


       {% 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 -%}

Result:

Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

1 Like

@suyash1

I’m not technical. If you can kindly give some specific place where I add this code.

I’ve tried it under multiple buttons in the checkout-drawer.liquid file but nothings seems to change.

@YordiMNL - try solution given by @GemPages - if you just can not do it then please let me know, I can try it and provide you the result.

@GemPages

Thank your very much for the information, it worked!

But how to increase the spacing between the payment icons and the button?

@YordiMNL

I added a css ‘margin top: 10px’ in your code
You can change it with a suitable number

Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

Hi, I also entered the code but it does not work. Do you have any ideas why it doesn’t ?

This should be the accepted solution. Thank you.