"line_item.selling_plan_allocation" not displaying in cart.liquid

Topic summary

Issue: The Liquid object “line_item.selling_plan_allocation” is not displaying on the cart page (cart.liquid); it returns nil even after a selling plan is selected on the product page and the item is added to cart.

Context: The implementation follows Shopify’s official guide for purchase options (selling plans). A selling plan group was created, a plan was selected, and the cart was updated to output the object.

Key question: How is the “selling_plan_allocation” object created/populated for a line item, and are there additional steps required on the product page to ensure it is set?

Artifacts: A code snippet attempting to render the object and a link to the Shopify documentation are central to understanding the setup.

Confirmation: Another theme developer reports the exact same behavior, seeking clarification.

Status: No resolution or workaround provided. The thread remains open with unanswered questions about the correct mechanism to populate and access “selling_plan_allocation” in cart.liquid.

Summarized with AI on December 27. AI used: gpt-5.

Following this guide here: https://shopify.dev/docs/themes/pricing-payments/purchase-options/support-purchase-options#the-selling-plan-selector-on-the-product-page

How is the selling_plan_allocation object created?

After creating a selling plan group, selecting a selling plan on the product page adding it to the cart, “selling_plan_allocation” returns nil when I update cart.liquid with the following.


{% line_item.selling_plan_allocation %}

Is there anything else I should be doing/assigning on the product liquid page when selecting a selling plan?

Hi, Im also developing a theme and I’ve run into the same exact problem, would be nice to get some clarification as It seems we aren’t the only ones encountering this issue.

Thanks