Personalized checkout and custom promotions with Shopify Scripts
FREE_TAG = 'freeship' PRODUCT_ID = 66854371656 if Input.cart.shipping_address.country_code == 'US' Input.cart.line_items.select do |line_item| product = line_item.variant.product if product.id == PRODUCT_ID PRODUCT_ID = true Input.shipping_rates.each do |shipping_rate| next unless shipping_rate.source == "shopify" shipping_rate.apply_discount(shipping_rate.price * 100, message: "Discounted shipping") end end end end Output.shipping_rates = Input.shipping_rates
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023