Shopify payment icon code issue

Hi there,

this is the code for it

{%- if section.settings.payment_info == 'svg' -%}
  • American_Express
  • Maestro
  • Mastercard
  • Shop Pay
  • Visa
{%- else -%} {%- if section.settings.imgpayment != blank -%}

that is how the code is and I have been trying to fix it so that I can change the payment icon to be displayed but it never allows me it keeps bringing up an error that has occurred in the liquid.

I don’t know what else to do again now and I will like to hear your idea.

Please

Hi @Sammy_expert ,

If this is part of your code, you are missing the closing {% endif %}. Replace {% else %} to {% endif %}. See the bold text below

{%- if section.settings.payment_info == 'svg' -%}
  • American_Express
  • Maestro
  • Mastercard
  • Shop Pay
  • Visa
**{%- endif -%}** {%- if section.settings.imgpayment != blank -%}