Selling plan not in checkout.line_items

Udayasankar
New Member
1 0 0

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 %}

0 Likes