Free Shipping Script

This guide requires the Shopify Script Editor app.

By default we utilize discount codes to provide free shipping to subscribers. Due to Shopify's limitation, only allowing 1 discount code to be used at checkout, this is not always the most desirable solution. A more robust solution is to utilize the Shopify Script Editor app to create a free shipping script. This will allow your customers to utilize any current discount codes your providing as well as take advantage of their free shipping benefit at the same time.

Editable Values

  • MESSAGE - {string} The message that will be displayed next to discounted shipping items.

  • MINIMUM_PURCHASE_AMOUNT - {number | nil} The amount a customer must purchase before this discount is applied. Measured in dollars. Set to nil to remove this check.

  • MINIMUM_QUANTITY_ITEMS - {number | nil} The amount of items that must be in cart before this discount is applied. Set to nil to remove this check.

  • MAXIMUM_SHIPPING_PRICE - {number | nil} The maximum amount a shipping item can cost to allow this discount to apply. Set to nil to remove this check.

  • PRODUCT_ID_LIST - {array[number]} An array of product IDs that must be in cart to get the discount. All items in cart must be represented in the array for the discount to apply. If left empty, discount will apply to all products.

  • COUNTRY_CODE_LIST - {array[string]} An array of ISO 3166-1 alpha-2 country code designators that the shipping address must match to receive the discount. If left empty, discount will apply to all countries.

Script

Last updated

Was this helpful?