How to Add Payment Icons
After Shopify's latest update of payment gateways, the payment icons are not automatically fetched into the footer of your webshop. It's not the end of the world, because we've made it easy for you to add them again. You're welcome.
It could have been quite a hassle. You might have found yourself having to delve into the deepest recesses of the backend to tinker with something best left alone. But we wouldn’t put you through that. That's why we've created a simple fix, so you won't have to fiddle with 117 things, just insert one code and replace another. It’s a bit typical of us. We like to keep it easy peasy.
So. Let's go:
In Shopify admin, click on Online Store and select your Live Theme. Click on Actions and choose Edit Code.
Search for footer.liquid in the search field and bring it up on the screen.
Insert in line 1:
{%- assign paymentIconsFix = "dankort,visa,master,mobilepay,forbrugsforeningen,anyday,viabill,american_express,paypal,trustly,vipps,venmo,apple_pay,google_pay,maestro,shopify_pay" | split: "," -%}
Be sure to remove the payment methods you don't want to display. For example, if you don’t want to show Forbrugsforeningen, just delete Forbrugsforeningen — and remember to also remove the comma right after.
Next, search for shop.enabled_payment_types
and replace it with paymentIconsFix
(activate the search field with Ctrl+f on Windows and Cmd+f on Mac).
Click the green Save button in the top right corner. Done!
Get in touch with your developer or call us if something goes wrong. It shouldn't happen, but after all, we're all just human. You can reach us at 70 711 377.