Payment accordion

Product page block

In the Product template, you can add a Payment feature block to display icons of accepted payment methods.

Shopify | Payment methods are a Shopify feature. Themes do not control which payment icons appear: see Shopify's Payments manual ↗ to learn more or contact Shopify Support ↗ about payment icons.

Set up payment accordion

Follow the steps to add a payment feature accordion and customize the layout and headings.

Editing a template changes all pages that use that template. To edit specific pages, you can create and assign new templates or insert dynamic content using metafields.

STEPS

In your theme editor (Customize):

  1. Choose the Products template you want to edit.

  2. Under the Product overview section, click on the Payment block to open the settings.

    Or click (+) Add block and select Payment widget.

  3. Select which column to display the feature: either Left or Right.

    Choose Left for a larger block below the product media.

  4. Choose whether to Show payment icons.

  5. Click Save.

Advanced: Add or remove payment icons

Our support does not cover custom code. These steps are offered only as a reference. we recommend working with a developer through Shopify Experts ↗ or Task Husky ↗.

If you are familiar with coding, you can edit the payment-icons.liquid file to add or remove payment icons that are displayed.

When editing theme code, always duplicate your current theme and use the unpublished theme copy to test your changes before publishing.

STEPS

From your Shopify admin:

  1. Go to Online store > Themes.

  2. Find your current theme, then click the ... button and select Duplicate theme.

  3. On the duplicated theme, click the ... button and select Edit code.

  4. In the Snippets folder, click payment-icons.liquid to open the file.

  5. Find the following code:

{% for type in enable_payment_types %}

  1. Replace that code with the following code:

```liquid

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


</div>

7.  Edit the payment type values to change which icons are displayed. Separate each value with a comma.

    > The default list is `visa,master,american_express,paypal`. Find all [available payment values](https://github.com/activemerchant/payment\_icons/tree/master/app/assets/images/payment\_icons). Copy the name but do not include `.svg`

<!---->

8. Click **Save**.
9. After testing, you can go to your Theme library to **Publish** the duplicated theme with your changes.

</details>

&#x20;
<br>

***

> **Related links**
>
> [Product template](../product-template/)\
> [Security accordion](security-accordion.md)\
> [Shipping accordion](shipping-accordion.md)

Last updated