Membership
{% assign selling_plan_selected = blank %}
{% assign has_selling_plans = false %}
{% for variant in product.variants %}
{% if variant.id == product.selected_or_first_available_variant.id %}
{% for allocation in variant.selling_plan_allocations %}
{% assign selling_plan_selected = allocation.selling_plan.id %}
{% break %}
{% endfor %}
{% endif %}
{% if variant.selling_plan_allocations.size > 0 %}{% assign has_selling_plans = true %}{% endif %}
{% if selling_plan_selected != blank %}{% break %}{% endif %}
{% endfor %}
{% if has_selling_plans %}
{% endif %}