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
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023