Why aren't my updated payment icons showing in Dawn 9.0.0 theme footer?

I use the Dawn 9.0.0 theme. In Sections > footer.liquid, I have changed this:

{%- for type in shop.enabled_payment_types -%}

to this:

{% assign enabled_payment_types = 'visa,master,klarna,klarna-pay-later,sofort,google_pay,apple_pay' | remove: ' ' | split: ',' %}
              {%- for type in shop.enabled_payment_types -%}

So I added the one line above the original code.

But it doesn’t change anything: In the frontend, I still see the same icons in the footer as before.

(I have activated the display of payment icons in the theme admin.)

Can you tell me what I’m doing wrong?

Thank you in advance.

Hi Patrick,

You need to remove the shop. e.g. {%- for type in enabled_payment_types -%}

Thank you!

It worked.