Skip to product information
1 of 1
Published:2026.04.07

[Horizon] Display a "free shipping progress" bar on the cart page

[Horizon] Display a "free shipping progress" bar on the cart page

Applications

  • カート編集
View full details

This is a setup example for displaying a "X more to free shipping" bar on the cart page. No theme files need to be edited — just paste the code into a Custom Liquid section. It supports Horizon's Section Hydration (cart:update event), so the amount updates instantly when items are added or removed without a page reload.


Preview

The remaining amount is shown above the checkout button. Once the free shipping threshold is reached, it switches to "Free shipping unlocked!"

Cart page showing free shipping progress bar in two states: incomplete and reached


Setup Steps

Add a Custom Liquid block to the cart template in the theme editor and paste in the sample code. Only 2 values need to be configured.

Adding a Custom Liquid block to the cart template in the theme editor


Configuration Values

  • FREE_SHIPPING_THRESHOLD — The free shipping threshold amount (in JPY). Default: 15000
  • LINK_URL — The destination URL for the "Browse more items" link. Set to '' to hide the link


Notes

  • The bar re-renders correctly when the page is restored from bfcache (browser back/forward cache)
  • The bar is injected immediately before .cart__ctas (the checkout button wrapper). If the theme update changes this class name, a code update will be needed

After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Horizon 3.4.0

カスタムLiquidセクションに貼り付けるコード

コード上部の2か所(FREE_SHIPPING_THRESHOLDLINK_URL)を変更してから貼り付けてください。