Hello guys,
can someone please help me? I want the payment badges to show in my shopping cart just like in this example.
I use the theme dawn.
thanks a lot.
Kind regards
Wassim
A user seeks help displaying payment badges in their shopping cart drawer on the Dawn theme, similar to a reference example they provided.
Two solutions were offered:
Sweet_Savior_3 suggested adding code to the cart-drawer.liquid file that loops through enabled payment types and displays their SVG icons with full-color styling.
BSS-TekLabs provided more detailed step-by-step instructions:
cart-drawer.liquidshop.enabled_payment_types to render payment iconsBoth solutions use similar Liquid templating logic to display payment method icons. BSS-TekLabs included screenshots showing code placement and the expected visual result, and requested the user mark their response as the accepted solution if helpful.
Status: Solutions provided; awaiting user confirmation of resolution.
Hello guys,
can someone please help me? I want the payment badges to show in my shopping cart just like in this example.
I use the theme dawn.
thanks a lot.
Kind regards
Wassim
Hello @wh31_wh1222
Welcome to Shopify Community.
Please add below code in cart-drawer.liquid file.
{% for type in shop.enabled_payment_types %}
{{ type | payment_type_svg_tag: class: 'icon icon--full-color' }}
{% endfor %}
Thanks
Hi @wh31_wh1222 ,
You can follow these steps to show the payment badges in the cart drawer
Open Online Store > Theme > Edit Code
Find the cart-drawer.liquid file and open it
Paste the code snippet below under the checkout button
{{ 'sections.footer.payment' | t }}
{%- for type in shop.enabled_payment_types -%}
- {{ type | payment_type_svg_tag: class: 'icon icon--full-color' }}
{%- endfor -%}
Here is the result
Hope this helps you solve the issue.
Please don’t forget to Like and Mark it as an Accepted Solution if you find this helpful. Thank you!