' echo rec_variant.price | money_without_trailing_zeros echo '
{%- liquid
assign free_shipping = section.settings.free_shipping | default: 699
assign threshold = free_shipping | times: 100
assign progress = 0
assign remaining = 0
assign unlocked = false
if threshold > 0
if cart.total_price >= threshold
assign progress = 100
assign unlocked = true
else
assign remaining = threshold | minus: cart.total_price
assign progress = cart.total_price | times: 100 | divided_by: threshold
endif
endif
assign rec_collection = section.settings.recommendations
if rec_collection == blank
assign rec_collection = collections.all
endif
assign shown = 0
capture rec_items
if rec_collection != blank
for product in rec_collection.products limit: 24
if shown >= 4
break
endif
assign already_in_cart = false
for item in cart.items
if item.product_id == product.id
assign already_in_cart = true
endif
endfor
if already_in_cart
continue
endif
assign rec_variant = product.selected_or_first_available_variant
if rec_variant == blank
continue
endif
unless rec_variant.available
continue
endunless
assign shown = shown | plus: 1
assign add_label = 'cart_drawer.add_short' | t
echo ' '
echo rec_variant.price | money_without_trailing_zeros
echo '