Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Payment method icons in cart drawer

Solved

Payment method icons in cart drawer

sim8
Tourist
14 0 2

Hi,

 

I would like a selection of payment method icons in the cart drawer under the check out button.

I am using the theme dawn. Can anyone help me with this? 

Preferably no apps. 

 

Thanks in advance 🙂

Accepted Solution (1)
Guleria
Shopify Partner
3684 741 1038

This is an accepted solution.

Here you can find how to enable specefic one
https://help.shopify.com/en/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-...

If problem solved don't forget to Like it and Mark it as Solution!
And if you need help with customization/code part you can contact me for services

You can find the email in the signature below.

 

Thanks



- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

View solution in original post

Replies 5 (5)

Guleria
Shopify Partner
3684 741 1038

Hello @sim8 ,

 

Edit snippets -> cart-drawer.liquid
Here search for this code

<div class="cart__ctas" {{ block.shopify_attributes }}>
          <button
            type="submit"
            id="CartDrawer-Checkout"
            class="cart__checkout-button button"
            name="checkout"
            form="CartDrawer-Form"
            {% if cart == empty %}
              disabled
            {% endif %}
          >
            {{ 'sections.cart.checkout' | t }}
          </button>
        </div>

 

Once found next to it add this code ( maybe at line 558 )

<div class="cart__ctas">
         <ul class="list list-payment" 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>

 

If problem solved don't forget to Like it and Mark it as Solution!
And if you need help with customization/code part you can contact me for services

You can find the email in the signature below.

 

Thanks

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
sim8
Tourist
14 0 2

Thanks for your reply.

 

But I would like to just use some of the payment icons instead of all the enabled payment types.

 

 

LizHoang
Shopify Partner
245 31 56

Hi @sim8 

 

You can follow the instruction here :

 

1. Go to Shopify > Theme > Edit code > open Snippet > go to File cart-drawer.liquid : screenshot 

2. Copy and paste this code to the section > Save

 

 

<div id="payment-icon" style="margin-top: 10px;">
          <ul class="list list-payment" role="list" style="justify-content: center;">
              {%- 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>

 

Here is the result : 

LizHoang_0-1731045322866.png

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
sim8
Tourist
14 0 2

Thanks for your reply.

 

But I would like to just use some of the payment icons instead of all the enabled payment types.

 

Guleria
Shopify Partner
3684 741 1038

This is an accepted solution.

Here you can find how to enable specefic one
https://help.shopify.com/en/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-...

If problem solved don't forget to Like it and Mark it as Solution!
And if you need help with customization/code part you can contact me for services

You can find the email in the signature below.

 

Thanks



- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder