How to Add Payment Method Icons to the Cart Drawer
A free guide on how to add payment method icons to the cart drawer, including enabling them via a checkbox directly in the Shopify Dawn theme settings.
Last updated
<div class="drawer__footer"><!-- Cart Drawer List Payment -->
{%- if settings.payment_enable -%}
<div class="footer__payment">
<span class="visually-hidden">{{ 'sections.footer.payment' | t }}</span>
<ul class="list list-payment CartDrawer-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>
{%- endif -%}.list-payment.CartDrawer-list-payment {
display: flex;
justify-content: center;
margin-top: 10px; /* adds top margin */
margin-bottom: 0.5rem; /* adds bottom margin */
/* gap: 10px; */ /* can be enabled if you want spacing between the icons */
}.list-payment.CartDrawer-list-payment {
display: flex;
justify-content: center;
}"name": "t:settings_schema.cart.name",{
"type": "checkbox",
"id": "payment_enable",
"default": true,
"label": "t:sections.footer.settings.payment_enable.label"
},