{%- comment -%} Works on every plan (Order Status / Thank You are plain Liquid-rendered pages outside checkout extensibility for non-Plus stores) — reads the same dd_* attributes the storefront widget/POS/Plus checkout all write, which Shopify carries from cart attributes onto order.note_attributes automatically. This is the actual "all plans show confirmed slot on thank-you/order-status" piece (IMPLEMENTATION_PLAN.md Phase 7); the Checkout UI Extension's Thank You block (extensions/checkout-datetime) is an additional, Plus-only nicety layered on top, not a substitute for this. {%- endcomment -%} {%- assign dd_method = blank -%} {%- assign dd_display = blank -%} {%- for attribute in order.note_attributes -%} {%- if attribute.name == "dd_method" -%} {%- assign dd_method = attribute.value -%} {%- endif -%} {%- if attribute.name == "Pickup date" or attribute.name == "Delivery date" or attribute.name == "Shipping date" -%} {%- assign dd_display = attribute.value -%} {%- endif -%} {%- endfor -%} {%- if dd_method != blank and dd_display != blank -%}
{%- case dd_method -%} {%- when "PICKUP" -%}{{ 'order_confirmation.pickup_label' | t }} {%- when "LOCAL_DELIVERY" -%}{{ 'order_confirmation.delivery_label' | t }} {%- else -%}{{ 'order_confirmation.shipping_label' | t }} {%- endcase -%}
{{ dd_display }}