We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Add payment icons underneath checkout button on cart page

Add payment icons underneath checkout button on cart page

YordiMNL
Tourist
16 0 2

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:
<ul class="list list-payment" role="list">
{% assign enabled_payment_types = 'ideal,visa,maestro,master,american_express,bancontact' | remove: ' ' | split: ',' %}
{% for type in enabled_payment_types %}
<li class="list-payment__item">
{{ type | payment_type_svg_tag: class: 'icon icon--full-color' }}
</li>
{%- endfor -%}
</ul>


Kind regards,

Yordi

Replies 10 (10)

suyash1
Shopify Partner
11112 1367 1751

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

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
YordiMNL
Tourist
16 0 2

Thanks for your response @suyash1 

But where exactly?

suyash1
Shopify Partner
11112 1367 1751

@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

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
YordiMNL
Tourist
16 0 2

@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.

suyash1
Shopify Partner
11112 1367 1751

@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. 

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com

GemPages
Shopify Partner
5625 1262 1292

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:

 

GemPages_0-1669618959296.png

 

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

3. Find line 65 and added code after:

 

<ul class="list list-payment" role="list" style="margin-top:10px;">
       {% assign enabled_payment_types = 'ideal,visa,maestro,master,american_express,bancontact' | remove: ' ' | split: ',' %}
       {% for type in enabled_payment_types %}
          <li class="list-payment__item">
             {{ type | payment_type_svg_tag: class: 'icon icon--full-color' }}
          </li>
       {%- endfor -%}
</ul>

 

Screenshot at Dec 15 19-56-25.png

 

Result: 

 

Screenshot at Dec 15 19-58-29.png

 

Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
YordiMNL
Tourist
16 0 2

@GemPages 

Thank your very much for the information, it worked!

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

GemPages
Shopify Partner
5625 1262 1292

@YordiMNL 

 

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

 

Screenshot at Dec 15 21-07-13.png

 

Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
seasonmusthaves
Visitor
1 0 0

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

greenvalleycode
Explorer
48 0 8

This should be the accepted solution. Thank you.