Shop Pay Installments
Shop Pay Installments lets customers split eligible purchases into installments.
The Shop Pay Installments banners let customers know that they have the option to pay in installments. The product page banner sits near the product price, and the cart banner sits under the cart total. Each banner includes an information button that opens a dialog that shows the installment amount, more information about installments, and any required disclosures.
The Shop Pay Installments banner is a Shopify-branded element. Its messaging, Shop logo, font, and dialog content are controlled by Shopify and can't be modified. You can control where the banner appears in your theme.
The Shop Pay Installments banner is a Shopify-branded element. Its messaging, Shop logo, font, and dialog content are controlled by Shopify and can't be modified. You can control where the banner appears in your theme.
![]() | ![]() |
This guide is for themes that don't let you turn the banners on from the theme editor. That's the usual situation on a custom theme, a heavily customized theme, or a theme installed before January 31, 2022. You'll add the banners by editing theme code, so you need to be comfortable with Liquid and some JavaScript.
This guide applies only to product and cart pages that the online store serves. Hydrogen and other custom storefronts can't use the payment_terms filter.
The guide covers the product page banner first. The cart banner uses the same filter, so Add the banner to the cart form covers only what's different.
Anchor to Check the theme editor firstCheck the theme editor first
On a Horizon Shopify theme, neither banner needs code:
- Product page banner: It belongs to the price block on the product template. In the Shopify admin, go to Online Store > Themes > Customize, open a product template, select the price block, and turn on Installments.
- Cart banner: It's a theme-level setting. In the theme editor, open Theme settings > Cart and turn on Installments.
On a Dawn Shopify theme, the product page banner renders as part of the price block automatically, without a setting.
If the theme already shows a banner, or has a setting for it, then you don't need this guide for that banner. Otherwise, keep reading.
Merchants who don't want to edit theme code can ask Sidekick to add both banners, or work with a Shop Pay Expert.
Merchants who don't want to edit theme code can ask Sidekick to add both banners, or work with a Shop Pay Expert.
Anchor to RequirementsRequirements
- Confirm that the store is in a supported market and sells in that market's currency.
- Turn on Shopify Payments and Shop Pay.
- Activate Shop Pay Installments. In the Shopify admin, go to Settings > Payments, click Manage for Shopify Payments, and find Shop Pay Installments in the Shop Pay section. For details, refer to Activating Shop Pay Installments.
- Render
{{ content_for_header }}inside<head>inlayout/theme.liquid. Shopify injects the banner script through it. Without it, the banner tag is in the page source but isn't visible. - Duplicate the theme and make your edits in the copy, so that you can revert easily.
Anchor to ResourcesResources
To implement this feature, you'll use the following:
- The
formobject. - The
payment_termsfilter. - The
formtag.
Both banners come from one Liquid filter, payment_terms, applied to the form object. Inside a product form, it renders the product page banner. Inside a cart form, it renders the cart banner.
On an eligible store, the filter outputs a single custom element inside a product form:
The shopify-meta attribute carries prices, the store's financing plans, and the minimum and maximum eligible amounts. A Shopify script turns that into the visible banner and the dialog that opens from its information button. The cart banner is the same element without variant-id, because it quotes the cart total instead of a variant price.
Keep the following behavior in mind when you debug either banner:
- When the store, product, or currency isn't eligible, the filter outputs nothing at all. An empty space where you expected a banner is normal behavior, not an error.
- When only the price is outside the store's installments range, the banner still appears, and tells customers the minimum or maximum order amount.
- The filter has to run during the page render. Pasting the
<shopify-payment-terms>HTML yourself, or injecting the tag with JavaScript, doesn't work, because the metadata comes from the filter. - Shopify adds the banner script to
content_for_headeron pages where the filter rendered a banner. It also loads the script when a<shopify-payment-terms>element is added to the page later, so filter output from a quick view or a re-rendered section shows a banner too.
Don't write the banner markup yourself. Installment messaging, rates, and the disclosures in the banner's dialog are regulated, and the amounts change with the store's financing plans. Always render the banners with the payment_terms filter, so the copy and disclosures stay accurate and compliant. For the approved messaging and regulatory guidelines in each region, refer to the Shop Pay Installments marketing toolkit.
Don't write the banner markup yourself. Installment messaging, rates, and the disclosures in the banner's dialog are regulated, and the amounts change with the store's financing plans. Always render the banners with the payment_terms filter, so the copy and disclosures stay accurate and compliant. For the approved messaging and regulatory guidelines in each region, refer to the Shop Pay Installments marketing toolkit.
If your theme doesn't use Liquid product or cart forms, then you can convert an HTML form to Liquid by specifying any HTML attributes that you need on the form.
If your theme doesn't use Liquid product or cart forms, then you can convert an HTML form to Liquid by specifying any HTML attributes that you need on the form.
Anchor to Step 1: Find the product forms in your themeStep 1: Find the product forms in your theme
In the Shopify admin, go to Online Store > Themes, click ... > Edit code, and search your theme for the following:
Depending on the theme, the product form usually lives in one of these files:
sections/main-product.liquid.snippets/product-form.liquid.snippets/buy-buttons.liquid.sections/featured-product.liquid.sections/product-template.liquid.templates/product.liquid.- A quick view or quick add snippet.
The product page banner has to sit inside a product form, so add it to every surface where you want it to appear.
Anchor to Step 2: Add the filter inside the product formStep 2: Add the filter inside the product form
Add {{ form | payment_terms }} near your price markup, so that price and payment information stay grouped:
Anchor to Step 3: Add a second form if the price is outside the product formStep 3: Add a second form if the price is outside the product form
Custom themes often keep the price outside the product form. So do themes like Dawn, which keeps the product form in snippets/buy-buttons.liquid. Add a second product form next to the price that only renders the product page banner, with a hidden input that names the selected variant:
Follow these rules for the second form:
- Keep it outside your add-to-cart form. Nested
<form>elements are invalid HTML and can break the add-to-cart button. - Don't add submit buttons or other inputs to it. It exists only to render the banner.
The product page banner follows the form input named id. If your theme switches variants in JavaScript without updating that input, then the banner keeps quoting the variant that the page loaded with. That's usually the first available variant, or the variant in the URL's ?variant= parameter.
Choose the approach that fits your theme:
-
Re-render the section: If you already use the Section Rendering API on variant change, then make sure that the re-rendered section includes the form from Step 3. The Liquid runs again and the banner updates itself.
-
Update the input and fire a
changeevent: This is what Dawn does inupdateVariantInputs(). Scope the update to the section whose variant changed. A page can show more than one product, such as a featured product and a quick view, and each one has its own banner form:function updateInstallmentsVariant(sectionId, variantId) {const input = document.querySelector(`#product-form-installment-${sectionId} input[name="id"]`);if (!input) return;input.value = variantId;input.dispatchEvent(new Event('change', { bubbles: true }));}Call this function from your existing variant-change handler. Pass the section ID that you used in the form ID in Step 3, and the ID of the newly selected variant. Don't select every
form.installmenton the page, because that writes one product's variant into every other product's banner.
The cart banner comes from the same filter, so everything in Requirements and How the banners work still applies, and so do Style the banners and Troubleshooting.
Add the cart banner below the cart total, inside a cart form, on every surface that shows the cart. That includes the cart page, a cart drawer or side cart, and a cart notification dialog if your theme has one. Common files include the following:
sections/main-cart-footer.liquid.snippets/cart-drawer.liquid.sections/cart-template.liquid.templates/cart.liquid.
Add the filter inside the cart form:
There's no hidden input and no variant-id here. The cart banner quotes the cart total rather than a variant price, so it doesn't need Steps 3 and 4. Instead, Updating the banner with cart total changes covers keeping the amount current.
The cart banner reads the cart total from the element with the data-cart-subtotal attribute, and reads it again when the cart changes. Despite its name, the attribute belongs on the element that shows the cart total (cart.total_price). Most Shopify themes already have the attribute, but a custom theme usually doesn't:
Example
If your cart updates over AJAX, then make sure that the attribute survives the update. Updating the text inside the existing cart total element is enough only while the cart stays eligible, such as when a customer changes the quantity of an eligible item. The filter decides whether to render a cart banner, so text updates can't add a banner to an empty cart or remove one when an ineligible item is added. When items are added or removed, re-render the cart form and the cart total together, in Liquid or with the Section Rendering API. If your theme replaces the cart total element, then change a quantity and check that the banner amount updates too.
- An empty cart shows no cart banner.
- One ineligible item hides the cart banner entirely. If any line item is a gift card or a subscription-only product, then nothing renders, even when everything else in the cart is eligible. On a product page, only that product's banner is affected.
- The quoted amount is the cart total, after discounts and before shipping and taxes, so the amount at checkout can be higher.
Both banners render inside a custom element that owns its internal markup, so style the element that you wrapped it in rather than the custom element itself. The following examples target the installments wrapper from Step 3. If you added the filter as in Step 2 or the cart example, then wrap {{ form | payment_terms }} in <div class="installments"> so that the same selectors apply. Font size and color are inherited:
Collapse the wrapper when no banner rendered, so that ineligible products and carts don't leave a gap:
The Shop Pay logo adapts to your background automatically: dark on light backgrounds, and white on dark ones. Avoid placing either banner inside a container that's hidden by default or that clips overflow, because the dialog needs to open over the page.
Anchor to Test before you publishTest before you publish
Preview the duplicated theme and check the following for the product page banner:
- On a product priced within the store's installments range, the banner appears near the price, and clicking its information button opens the dialog.
- When you view the page source and search for
shopify-payment-terms, you find the tag. Finding the tag confirms that the Liquid is right. Not finding it means that eligibility or filter placement is the problem. - Switching variants updates the installment amount.
- The banner looks right on mobile, and in quick view or quick add if you added it there.
Check the following for the cart banner:
- The banner appears under the cart total on the cart page, and in the cart drawer if your theme has one.
- The amount changes when you change a line item quantity or apply a discount.
Then publish the theme and check a live product page and cart again.
Anchor to TroubleshootingTroubleshooting
| Symptom | Likely cause | What to do |
|---|---|---|
No banner anywhere, and no shopify-payment-terms in the page source | The filter isn't inside a {% form 'product' %} or {% form 'cart' %} block. Or, the store isn't eligible, Shop Pay Installments isn't activated, or the customer is shopping in a currency that the store's Shop Pay Installments account doesn't support. | Add the filter to the product or cart form. Confirm activation in Settings > Payments, and view the page in a supported currency. |
| Product page banner missing on some products only | The product is a gift card, or it's subscription-only. | This is expected behavior. No fix is needed. |
shopify-payment-terms is in the source but nothing is visible | The script never loaded, or the banner is hidden. | Confirm that {{ content_for_header }} is in the <head> of the layout that the page uses. Check for CSS that hides the wrapper, or a browser content blocker. |
| Product page banner shows the wrong price after switching variants | The hidden id input isn't being updated. | Apply Step 4. |
| A banner renders twice in the same place | The filter is in more than one form on that surface. | Keep one filter call per surface, next to the price or the cart total. |
| A banner works on one surface but not in a quick view, quick add, or cart drawer | The snippet or section that renders that surface doesn't call the filter inside a product or cart form, or the surface builds its markup in JavaScript. | Add the filter inside a product or cart form in the section that renders that surface. If the surface loads its markup with JavaScript, then load that section with the Section Rendering API. |
Nothing appears when you paste the <shopify-payment-terms> tag directly | The tag alone does nothing. The metadata and the script both come from the filter. | Render the banner with the payment_terms filter inside a product or cart form instead. |
| Cart banner missing while the product page banner works | The cart is empty, or a line item is a gift card or a subscription-only product. | This is expected behavior. Test with a cart of eligible items only. |
| Cart banner doesn't follow the cart total | The cart total element has no data-cart-subtotal attribute, or an AJAX update replaced that element without the attribute. | Add the attribute and keep it through cart updates. |
| Cart banner amount doesn't match what the customer sees at checkout | The banner quotes the cart total, before shipping and taxes. | This is expected behavior. No fix is needed. |
- Shop Pay Installments product page banner
- Shop Pay Installments cart page banner
- Shop Pay Installments customer experience

