My Daily Pack

{% if customer %} {% assign dashboard = customer.metafields.custom.daily_pack_dashboard.value %}
📦 Personalized Supplement Dashboard

My Daily Pack

View your active supplement packs, monthly servings, stored inventory, and previous pack history in one place.

{% if dashboard and dashboard.membership.active %} ● Active Membership {% else %} ● Membership Inactive {% endif %}
🧃
Active Packs
{% if dashboard %}{{ dashboard.summary.activePacks | default: 0 }}{% else %}0{% endif %}
💊
Assigned Products
{% if dashboard %}{{ dashboard.summary.totalProducts | default: 0 }}{% else %}0{% endif %}
📦
Stored Servings
{% if dashboard %}{{ dashboard.summary.storedServings | default: 0 }}{% else %}0{% endif %}
{% if dashboard and dashboard.packs.size > 0 %}
{% for pack in dashboard.packs %} {% assign pack_product_count = pack.products.size %} {% assign pack_total_servings = 0 %} {% assign pack_stored_servings = 0 %} {% for product in pack.products %} {% assign pack_total_servings = pack_total_servings | plus: product.bottleServings %} {% assign pack_stored_servings = pack_stored_servings | plus: product.servingsRemaining %} {% endfor %}

{{ pack.packName | default: 'Pack' }}

Pack {{ pack.packNumber | default: forloop.index }}
{{ pack_product_count }} Product{% if pack_product_count != 1 %}s{% endif %}
{{ pack_total_servings }} Bottle Servings
{{ pack_stored_servings }} Stored For Next Month
{% for product in pack.products %}

{{ product.productName }}

Bottle Servings
{{ product.bottleServings | default: 0 }}
Packed This Month
{{ product.servingsPackedThisMonth | default: 0 }}
Stored Next Month
{{ product.servingsRemaining | default: 0 }}
Packaging {{ product.packaging | default: 'Daily Foil Pack' }}
Pack Quantity {{ product.packQuantity | default: 1 }}
Subscription {{ dashboard.membership.type | default: 'Not available yet' }}
{% else %}

No products assigned to this pack yet.

{% endfor %}
{% endfor %}
{% else %}

No Daily Pack information is available yet. Your dashboard will update after your order is processed.

{% endif %}

Products Being Stored For Me

{% assign has_stored_products = false %} {% if dashboard %} {% for pack in dashboard.packs %} {% for product in pack.products %} {% if product.servingsRemaining > 0 %} {% assign has_stored_products = true %}
{{ product.productName }}
Pack: {{ pack.packName | default: pack.packNumber }}
Stored For Next Month: {{ product.servingsRemaining }} servings
{% endif %} {% endfor %} {% endfor %} {% endif %} {% unless has_stored_products %}

No stored products currently.

{% endunless %}

Previous Pack

{% if dashboard and dashboard.previousPack and dashboard.previousPack.products.size > 0 %} {% for product in dashboard.previousPack.products %}
{{ product.productName }} {% if product.bottleServings != blank %}
Bottle Servings: {{ product.bottleServings }} {% endif %} {% if product.servingsPackedLastMonth != blank %}
Packed Last Month: {{ product.servingsPackedLastMonth }} {% endif %} {% if product.previouslyStored != blank %}
Previously Stored: {{ product.previouslyStored }} {% endif %}
{% endfor %} {% else %}

No previous pack available yet.

{% endif %}

Manage Subscription

{% if dashboard and dashboard.membership.nextShipmentDate != blank %} Your next shipment is scheduled for {{ dashboard.membership.nextShipmentDate }}. {% else %} Update your shipment schedule, billing method, or subscription preferences from your subscription portal. {% endif %}

Manage Subscription
{% else %} ● Membership Inactive {% endif %}
🧃
Active Packs
{{ total_packs }}
💊
Assigned Products
{{ assigned_products }}
📦
Stored Servings
{{ stored_servings_total }}
{% for i in (1..total_packs) %} {% assign pack_key = 'Pack ' | append: i %} {% assign pack_display_name = pack_key %} {% assign name_lines = pack_names_raw | newline_to_br | split: '
' %} {% for name_line in name_lines %} {% assign name_parts = name_line | split: '|' %} {% assign name_key = name_parts[0] | strip %} {% assign name_value = name_parts[1] | strip %} {% if name_key == pack_key and name_value != blank %} {% assign pack_display_name = name_value %} {% endif %} {% endfor %} {% assign has_items = false %} {% assign pack_product_count = 0 %} {% assign pack_total_servings = 0 %} {% assign pack_stored_servings = 0 %} {% assign current_items = current_raw | split: '•' %} {% for item in current_items %} {% assign clean_item = item | strip %} {% if clean_item contains pack_key and clean_item contains 'Product:' %} {% assign pack_product_count = pack_product_count | plus: 1 %} {% assign serving_split = clean_item | split: 'Bottle Servings:' %} {% if serving_split.size > 1 %} {% assign serving_text = serving_split[1] | split: 'Packed This Month:' | first | strip %} {% assign serving_number = serving_text | split: ' ' | first | plus: 0 %} {% assign pack_total_servings = pack_total_servings | plus: serving_number %} {% endif %} {% assign stored_split = clean_item | split: 'Stored For Next Month:' %} {% if stored_split.size > 1 %} {% assign stored_text = stored_split[1] | split: 'Packaging:' | first | strip %} {% assign stored_number = stored_text | split: ' ' | first | plus: 0 %} {% assign pack_stored_servings = pack_stored_servings | plus: stored_number %} {% endif %} {% endif %} {% endfor %}

{{ pack_display_name }}

{{ pack_key }}
{% if pack_product_count > 0 %}
{{ pack_product_count }} Product{% if pack_product_count != 1 %}s{% endif %}
{{ pack_total_servings }} Bottle Servings
{{ pack_stored_servings }} Stored For Next Month
{% endif %}
{% for item in current_items %} {% assign clean_item = item | strip %} {% if clean_item contains pack_key and clean_item contains 'Product:' %} {% assign has_items = true %} {% assign item_data = clean_item | remove: 'Pack: Pack 1' | remove: 'Pack: Pack 2' | remove: 'Pack: Pack 3' | strip %} {% assign product_name = item_data | split: 'Product:' | last | split: 'Bottle Servings:' | first | strip %} {% assign bottle_servings = item_data | split: 'Bottle Servings:' | last | split: 'Packed This Month:' | first | strip %} {% assign packed_this_month = item_data | split: 'Packed This Month:' | last | split: 'Stored For Next Month:' | first | strip %} {% assign stored_next_month = item_data | split: 'Stored For Next Month:' | last | split: 'Packaging:' | first | strip %} {% assign packaging = item_data | split: 'Packaging:' | last | split: 'Subscription:' | first | strip %} {% assign subscription = item_data | split: 'Subscription:' | last | split: 'Next Shipment:' | first | strip %} {% assign next_shipment = item_data | split: 'Next Shipment:' | last | strip %}

{{ product_name }}

Bottle Servings
{{ bottle_servings }}
Packed This Month
{{ packed_this_month }}
Stored Next Month
{{ stored_next_month }}
{% if packaging != blank and packaging != item_data %}
Packaging {{ packaging }}
{% endif %} {% if subscription != blank and subscription != item_data %}
Subscription {{ subscription }}
{% endif %} {% if next_shipment != blank and next_shipment != item_data %}
Next Shipment {{ next_shipment }}
{% endif %}
{% endif %} {% endfor %}
{% unless has_items %}

No products assigned to this pack yet.

{% endunless %}
{% endfor %}

Products Being Stored For Me

{% if stored_raw != blank %} {% assign stored_items = stored_raw | split: '•' %} {% for item in stored_items %} {% assign clean_item = item | strip %} {% if clean_item contains 'Product:' %}
{{ clean_item | replace: 'Pack:', 'Pack:' | replace: 'Product:', '
Product:' | replace: 'Stored For Next Month:', '
Stored For Next Month:' }}
{% endif %} {% endfor %} {% else %}

No stored products currently.

{% endif %}

Previous Pack

{% if previous_raw != blank %} {% assign previous_items = previous_raw | split: '•' %} {% for item in previous_items %} {% assign clean_item = item | strip %} {% if clean_item contains 'Product:' %}
{{ clean_item | replace: 'Pack:', 'Pack:' | replace: 'Product:', '
Product:' | replace: 'Bottle Servings:', '
Bottle Servings:' | replace: 'Packed Last Month:', '
Packed Last Month:' | replace: 'Previously Stored:', '
Previously Stored:' }}
{% endif %} {% endfor %} {% else %}

No previous pack available yet.

{% endif %}

Manage Subscription

Update your shipment schedule, billing method, or subscription preferences from your subscription portal.

Manage Subscription
{% else %} {% endif %}