You're $61.00 away from free shipping
Aura Desk Lamp
Warm white · $89 each
1 lamp
Full price2 lamps
Save 10%3+ lamps
Save 15%
Tap + to watch the bar fill. Free shipping at $150.
Scroll inside the page. The bar appears when the main button leaves the screen.
Pick a color. The link updates too, so ads can point to one variant.
{%- comment -%} Free-shipping progress bar {%- endcomment -%}
{%- assign threshold = settings.free_shipping_threshold | times: 100 -%}
{%- assign remaining = threshold | minus: cart.total_price -%}
{%- assign pct = cart.total_price | times: 100
| divided_by: threshold | at_most: 100 -%}
<div class="ship-bar" style="--pct: {{ pct }}%">
{%- if remaining > 0 -%}
You're {{ remaining | money }} away from free shipping
{%- else -%}
Free shipping unlocked
{%- endif -%}
</div>
// Show the sticky bar only when the main button is off screen
const mainButton = document.querySelector('.product-form__submit');
const stickyBar = document.querySelector('.sticky-atc');
new IntersectionObserver(([entry]) => {
stickyBar.toggleAttribute('data-visible', !entry.isIntersecting);
}).observe(mainButton);
/* No scroll listeners, no layout jank: the browser tells us. */
{%- comment -%} Color swatches from the product's first option {%- endcomment -%}
{%- for value in product.options_with_values.first.values -%}
<input type="radio" name="Color" id="color-{{ forloop.index }}"
value="{{ value }}"
{%- if product.selected_or_first_available_variant.option1 == value %} checked{% endif -%}>
<label for="color-{{ forloop.index }}"
style="--swatch: {{ value | handle }}">{{ value }}</label>
{%- endfor -%}
// On change: update image, price and ?variant= in the URL
history.replaceState(null, '', `?variant=${variant.id}`);