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 9 (9)

suyash1
Shopify Partner
9851 1225 1566

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

To build shopify pages use pagefly | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30. | Support me
YordiMNL
Tourist
16 0 2

Thanks for your response @suyash1 

But where exactly?

suyash1
Shopify Partner
9851 1225 1566

@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 , My timezone is GMT+5:30. | Support me
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
9851 1225 1566

@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 , My timezone is GMT+5:30. | Support me

GemPages
Shopify Partner
5625 1261 1243

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 1261 1243

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