Dawn Theme Shopify: 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 Dawn theme settings.

1. Prepare the Icon in SVG Format

Online Store → Themes → Edit code.

2. Open the cart-drawer.liquid File in the snippets Folder

Find the following line:

<div class="drawer__footer">

Paste the following code before the closing </div> tag, as shown in the screenshot:

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

Next, locate the <style> tag in this file and insert the following CSS code before the closing </style> tag, as shown in the screenshot:

.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 */
}

If you want to adjust the spacing between the icons, simply remove the /* and */ around the line gap: 10px;.

2. Open the settings_schema.json File in the config Folder

Find the line:

"name": "t:settings_schema.cart.name",

Paste the following code, as shown in the screenshot.

{
  "type": "checkbox",
  "id": "payment_enable",
  "default": true,
  "label": "t:sections.footer.settings.payment_enable.label"
},

Save the changes.

3. Enable the Checkbox in Theme Settings

Go to Theme settings → Cart → Payment method icons.


Need help with setup? Contact us — we’ll handle everything for you.

Last updated

Was this helpful?