Home > Shopify Development > Modify the code for your payment icons

How to modify the code for your payment icons in Shopify

Sam Nguyen
Sam Updated: March 20, 2024

Share:

Drive 20-40% of your revenue with Avada
avada email marketing

Are your Shopify payment icons not quite right? Many store owners struggle to customize these important visual elements. This guide focuses on modifying the code for payment icons in Shopify, helping you create a more professional and trustworthy checkout experience. We’ll walk you through the process step-by-step, making it easy to update your payment icons even if you’re not a coding expert.

Let’s dive in and give your Shopify store’s payment section the polish it deserves.

Modify the code for your payment icons

Step 1:

Go to Online Store > Themes from your Shopify Admin panel.

Step 2:

Choose the theme you want to edit and click Actions > Edit code.

How to modify the code for your payment icons in shopify

Step 3:

Tap footer.liquid which is in the Sections directory. In case your theme does not include this file, please tap theme.liquid in the layout directory.

Step 4:

Find the code given below in the file:

{% for type in shop.enabled_payment_types %}

And replace it with:

{% assign enabled_payment_types = 'visa,master,american_express,paypal' | remove: ' ' | split: ',' %}
{% for type in enabled_payment_types %}

How to modify the code for your payment icons in shopify

Step 5:

There is a list containing payment providers separated by commas: visa,master,american_express,paypal in the code that you have just pasted. The payment providers that you include in the list will determine which payment icons will be shown on your website. You are allowed to modify the payment provider list to meet your expectation.

There are several values listed below that you are able to employ:

  • american_express
  • apple_pay
  • bitcoin
  • dankort
  • diners_club
  • discover
  • dogecoin
  • dwolla
  • forbrugsforeningen
  • google_pay
  • jcb
  • klarna
  • klarna-pay-later
  • litecoin
  • maestro
  • master
  • paypal
  • shopify_pay
  • sofort
  • visa

Step 6:

Tap Save.

Conclusion

Customizing payment icons in Shopify is a straightforward process. By following these steps, you can Take control of your store’s visual representation of payment options. Act now to modify your footer.liquid or theme.liquid file, replacing the default code with the customizable version provided. This Change will allow you to precisely display the payment icons that best represent your store’s offerings, potentially increasing customer trust and conversion rates.


Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Singapore. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.

Stay in the know

Get special offers on the latest news from AVADA.