How to modify the code for your payment icons in Shopify

Updated: March 20, 2021

Share:

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

There is the fact that Shopify themes, which are free of charge, all do include the option to display payment icons in the footer. Those icons displayed are determined by the payment settings of your store, and able to be enabled in the theme editor. In case you want to add or delete payment icons while not changing your payment settings, then you are allowed to do so by modifying your theme code.

However, please keep reading our instructional writing on How to modify the code for your payment icons to know more deeply about this topic.

Specifically, we are going to configure how payment icons are assigned to the footer. The fact is that your theme does show the icons, which are associated with the payment gateway that you have enabled in payment settings section by default nut you could be able to manually add or delete the payment icons which you would like to show with this customization.

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

Thanks for reading the instruction. We hope it could be much easier for you now by following all those steps above!

Recommend for you
Image Description
SMS, Email Marketing Automation

Top rated Marketing automation for Shopify stores

Learn more
Image Description
SEO Suite

Auto-optimize website elements and structure in one-click.

Learn more
proofo
Boost Sales [Free]

Boost sales: Sales Pop, Trust badges, Countdown timer, more

Learn more
Image Description
Photo Reviews [Free]

Use photo reviews to boost sales

Learn more

Subscribe

Stay in the know

Get special offers on the latest news from AVADA.

40k subscribers has been joined!

Earn $10 in reward now!

comment
iphone
go up