All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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 %}
I also have the same issue. Cannot access selling plans via Liquid on checkout.