Add Liquid to your cart template
Add the following Liquid blocks to your cart template or snippet (for example,main-cart-items.liquid
) to show recurring payment information.
1
Open your cart template
In your Shopify theme editor, open the file where your cart line items are rendered.
2
Add the total recurring payment block
Paste the first block below the cart items to show the total monthly recurring payment.
3
Add the plan details block
Paste the second block inside your cart item loop to show details for each plan.
4
Save and test
Add a membership or subscription product to your cart and confirm the correct payment amounts display.
Total recurring payment
Add this block below your cart item loop to calculate and display the total recurring payment for all items in the cart.Line item plan details
Add this block inside your cart item loop to show each product’s plan name, first payment, and recurring payment.Notes
- Placement: The plan details block must sit inside the
{% for item in cart.items %}
loop. - Formatting: If your prices appear incorrect, remove the
| divided_by: 100
filter — this depends on how your theme handles price formatting. - Non-plan products: Items without selling plans are automatically skipped.
- Accessibility: Use clear labels like “First payment” and “Recurring payment” so customers and screen readers can easily understand the charges.