Selling plan not in checkout.line_items

Udayasankar
Visitor
1 0 1

Im trying  to get the the selling plan of the each product in my checkout with below code. I'm getting empty. it works with orders.line_items ( available only in status page)

 

{% for line_item in checkout.line_items %}
console.log("v",JSON.stringify("{{ line_item.variant.selected_selling_plan_allocation.selling_plan.name }}"))
console.log(JSON.stringify("{{ line_item.selling_plan_allocation.selling_plan.name }}"))
console.log(JSON.stringify("{{ line_item.selling_plan_allocation }}"))
{% endfor %}

Reply 1 (1)

6453mike
New Member
4 0 0

I also have the same issue. Cannot access selling plans via Liquid on checkout.