Skip to Content
Shopify logo
  • By business model
    • B2C for enterprise
    • B2B for enterprise
    • Retail for enterprise
    By ways to build
    • Platform overview
    • Modular commerce
    • Shop Component
    By outcome
    • Growth solutions
    • Shopify
      Platform for entrepreneurs & SMBs
    • Plus
      A commerce solution for growing digital brands
    • Enterprise
      Solutions for the world’s largest brands
  • Customer Stories
    • Everlane
      Shop Pay speeds up checkout and boosts conversions
    • Brooklinen
      Scales their wholesale business
    • ButcherBox
      Goes Headless
    • Arhaus
      Journey from a complex custom build to Shopify
    • Ruggable
      Customizes Headless ecommerce to scale with Shopify
    • Carrier
      Launches ecommerce sites 90% faster at 10% of the cost on Shopify
    • Dollar Shave Club
      Migrates from a homegrown platform and cuts tech spend by 40%
    • Lull
      25% Savings Story
    • Allbirds
      Omnichannel conversion soars
    • Shopify
      Platform for entrepreneurs & SMBs
    • Plus
      A commerce solution for growing digital brands
    • Enterprise
      Solutions for the world’s largest brands
  • Why trust us
    • Leader in the 2024 Forrester Wave™: Commerce Solutions for B2B
    • 2024 Gartner Magic Quadrant for Digital Commerce
    • Leader in the 2024 IDC B2C Commerce MarketScape vendor evaluation
    What we care about
    • Shop Component Guide
    • Principals of a Modern Commerce OS
    How we support you
    • Premium Support
    • Help Documentation
    • Professional Services
    • Technology Partners
    • Partner Solutions
    • Shopify
      Platform for entrepreneurs & SMBs
    • Plus
      A commerce solution for growing digital brands
    • Enterprise
      Solutions for the world’s largest brands
  • Latest Innovations
    • Editions - June 2024
    Tools & Integrations
    • Integrations
    • Hydrogen
    Support & Resources
    • Shopify Developers
    • Documentation
    • Help Center
    • Changelog
    • Shopify
      Platform for entrepreneurs & SMBs
    • Plus
      A commerce solution for growing digital brands
    • Enterprise
      Solutions for the world’s largest brands
  • Get in touch
  • Get in touch
Shopify logo
  • Blog
  • Enterprise ecommerce
  • Total cost of ownership (TCO)
  • Migrations
  • B2B Ecommerce
    • Headless commerce
    • Announcements
    • Unified Commerce
    • See All topics
Search
Type something you're looking for
Log in
Get in touch

Powering commerce at scale

Speak with our team on how to bring Shopify into your tech stack

Get in touch
blog|Announcements

Introducing Shopify Shipping Scripts: Innovative Shipping Customizations To Grow Your Business

What if you had the power to create your own in-house shipping guru…An expert who could look into every customer’s cart and identify which products can be shipped via certain carriers- and those that cannot - based on specific SKUs to certain zip codes, regions, or countries?Even better, what if all of it was automated?Imagine your own shipping impresario working around the clock to make sure you automatically ship the right product through the appropriate third party in the most efficient and margin-boosting way possible while simultaneously improving the customer experience.The ability to ship in this manner is no longer a dream…

by Nick Winkler
Introducing Shipping Scripts

The platform built for future-proofing

Get in touch

What if you had the power to create your own in-house shipping guru…

An expert who could look into every customer’s cart and identify which products can be shipped via certain carriers- and those that cannot - based on specific SKUs to certain zip codes, regions, or countries?

Even better, what if all of it was automated?

Click here to talk with sales about Shopify plans for enterprises

Imagine your own shipping impresario working around the clock to make sure you automatically ship the right product through the appropriate third party in the most efficient and margin-boosting way possible while simultaneously improving the customer experience.

The ability to ship in this manner is no longer a dream…

Your ability to ship smarter, more profitably, and in ways your customers are increasingly demanding is here.

Introducing Shopify Shipping Scripts

Ready to offer more intelligent shipping options?

Instead of spending the time and treasure necessary to build a potentially site-slowing application to analyze customer carts and modify shipping rates and options based on a customer’s geographic location as well as international rules and regulations, Shopify has expanded the functionality of Shopify Scripts to empower you to customize your own shipping solutions and run your store the way you’ve always desired.

With Shopify Scripts you can now remove, rename, and re-order various customer shipping options with just a few clicks.  

When a customer adds a product to their cart and enters a shipping address, your customized shipping options will automatically be presented.

For instance, consider using Shipping Scripts to show or hide custom shipping offers based on the following variables:

  • Products- You can show or hide shipping rates based on the products in a customer’s cart. For example, you can tailor your script so that a customer who places an order for a high-value item is only shown shipping options that include a tracking number.
  • Customer group- You can show or hide shipping rates based on a customer group or tag. In other words, a store doing both B2C and B2B ecommerce can now ensure that less expensive shipping rates are not offered to wholesalers.
  • Locations- Choose to show or hide shipping rates based on your customer's shipping address. If you cannot sell in a particular country or specific regions, you can now remove the shipping rates for those customers.
  • Promotions- Similar to Discount Scripts, you can now offer free shipping as a promotion to customers who have added items to their cart that meet your free shipping threshold.

You may also use Shipping Scripts to change the order in which your shipping options appear to customers; for example, most expensive to least expensive or vice versa.

How Merchants Can Creatively Use Shopify Shipping Scripts

The customer expects flexibility when it comes to shipping…

Not only does Shopify Shipping Scripts allow you to offer that flexibility but they also allow you to easily offer shipping options that are best for you and your margins. Shopify merchants are already creatively using Scripts to get the best of both worlds; an improved customer experience along with shipping options that make business sense.

Here's how it works:

  1. Install the Script Editor app
  2. Write the script with the help of a developer or Plus partner, based on your customization needs
  3. Copy the code into your Script Editor
  4. Run and test the Script
  5. Get a preview
  6. Publish when you’re ready to go

Here are some sample Shipping Scripts to get you started. 

Here are also five additional ways you might consider using Shipping Scripts to customize your shipping options and grow your business:

Shipping Scripts Use #1: Increase Average Order Value & Offer Free Shipping on Your Terms

Product launches can cause even loyal customers to hesitate…

New is unknown and therefore potentially risky.

Consider using Scripts to provide customers the nudge they often need to overcome the natural hesitation associated with purchasing a new release while simultaneously increasing your average order value. For instance, imagine offering customers purchasing your launch product a twenty-percent discount on the purchase of a second product plus free shipping.

When a customer adds the launch product and a second item to their cart, Scripts may be configured to calculate and display the free shipping at the checkout automatically. The result is not only a larger ticket for the merchant but a customer who feels satisfied having earned the free shipping she desires.

Shipping Scripts can also be used in other ways so merchants can offer free shipping after certain conditions have been met and on their terms.

“Shopify scripts allowed us to create a minimum price threshold which unlocked free shipping for our customers,” says Russell Saks, co-founder of Campus Protein. “Scripts allow for an easier conversion as you don’t need to worry about potential bugs as you would from plug-in apps.”

Shipping Scripts Use #2: Abiding By Differing Shipping Partner Rules & International Laws

Imagine selling your products all over the world…

Breaking into new markets and selling into emerging middle classes around the globe sounds enticing at first. However, making a mistake by shipping something you’re not allowed to ship into a foreign country can be costly to both your reputation and bottom line.

For instance, let’s say your main SKU contains a dairy product that another country does not permit to be shipped into the country from overseas vendors. You can use Scripts to identify when the SKU containing a banned dairy product is trying to be purchased by someone in the aforementioned country.

Scripts will prevent that customer’s payment from being captured and prevent the order from being fulfilled.

Separately, let’s say you run an ecommerce store that sells drones and one of your shipping partners does not permit you to ship batteries. Using a JavaScript workaround to hide that particular shipping option is notoriously fragile and can break other parts of your site when updates are made.

Not only does Scripts allow you to easily hide the shipping option that doesn’t permit battery shipments, but it does so safely and in ways that won’t negatively impact other parts of your site.

Shipping Scripts Use #3: Offering a Prime-Like Exclusive Club Model

Especially for companies offering seasonal products, sales can be extremely lumpy which can make it more difficult to plan capital investments. Smoothing out the top line can position ecommerce merchants to have greater visibility into their company’s future.

With Scripts you can also satisfy customer hunger for free shipping.

One way to do this- with the help of Shipping Scripts- is to mimic the elephant in the room; Amazon Prime. Imagine offering customers the opportunity to opt-in to an exclusive club in which members- who are tagged using Shipping Scripts- receive free ground shipping on items they add to cart and checkout with.

Or tweak the model just a bit and use Scripts to power a subscription-like service in which customers who agree to receive an “item of the month” are incented to do so because they can receive their orders via free ground shipping.

Shipping Scripts Use #4: Offer In-Store Pick Up

Not everyone has the luxury of selling lightweight items that can be shipped more economically than their larger counterparts. Imagine what it’d be like then if you were in the business of selling steel security safes that can weigh hundreds or even thousands of pounds.

Sounds impossible to do economically online, right?

With Scripts, merchants can easily offer alternative delivery methods. For instance, a merchant selling safes that also has a brick & mortar footprint might consider using Scripts to hide ground shipping options that could cannibalize much of their margin or deter a customer from purchasing altogether.

Additionally, not only might a merchant selling large safes use Scripts to detect when a safe has been added to a customer’s cart, but Scripts can also be used to offer in-store pick up as a delivery option based on a customer’s zip code.

Shipping Scripts Use #5: Use Scripts to Build Smart Carts

Merchants can use scripts to look inside a customer’s cart and automatically offer the best shipping options to the customer and merchant. 

This can work especially well for merchants selling SKUs that vary greatly in size.

Imagine you are a merchant selling bicycles and related gear. You might use Scripts to identify whether a bicycle has been added to a customer’s cart. If so, Scripts may be used to show the customer only the shipping options and rates available for bicycle shipments.

In the event no bicycle has been added to cart- say the customer is looking to purchase only a helmet- a standard set of shipping options and rates may be shown to the customer.

Impress Us, Won’t You?

We’ve taken credit for Shipping Scripts thus far but merchants like you are really the ones who deserve the credit. We listened to your requests, spent a year developing this functionality, and have outlined a handful of ways you can use Scripts to customize shipping rates and options for you and your customers.

Shopify Shipping Scripts is officially yours…

Get creative with how you use them and be sure to let us know the role they play in helping to improve the customer experience and grow your business.

Read more

  • How to Save Time Automating Major Sales Events, Campaigns & Product Releases with Launchpad
  • How Customizable Is Shopify?
  • 11 Ways Shopify's Buy Button Will Transform The Way You Sell Forever
  • 21 Ecommerce Personalization Examples & 7 Scalable Tactics
  • What is an Order Management System (OMS)? Your Guide to Choosing One
  • What are the retail trends for 2023?
  • Ecommerce Basics: A 101 Guide
  • Shopify Migration | Transfer Your Store or Website to Shopify
  • The Top 6 Benefits of Headless Commerce
  • How to Optimize Your Mobile Checkout Flow
NW
by Nick Winkler
Updated on 13 Feb 2017
Share article
  • Facebook
  • Twitter
  • LinkedIn
by Nick Winkler
Updated on 13 Feb 2017

The latest in commerce

Get news, trends, and strategies for unlocking new growth.

By entering your email, you agree to receive marketing emails from Shopify.

popular posts

Enterprise commerceHow to Choose an Enterprise Ecommerce Platform for Your Scaling StoreTCOHow to Calculate Total Cost of Ownership for Enterprise SoftwareMigrationsEcommerce Replatforming: A Step-by-Step Guide To MigrationB2B EcommerceWhat Is B2B Ecommerce? Types + Examples
start-free-trial

Unified commerce for the world's most ambitious brands

Learn More

popular posts

Direct to consumer (DTC)The Complete Guide to Direct-to-Consumer (DTC) Marketing (2025)Tips and strategiesEcommerce Personalization: Benefits, Examples, and 7 Tactics for 2025Unified commerceHow To Sell on Multiple Channels Without the Logistical Headache (2025)Enterprise ecommerceComposable Commerce: What It Means and Is It Right for You?

popular posts

Enterprise commerce
How to Choose an Enterprise Ecommerce Platform for Your Scaling Store

TCO
How to Calculate Total Cost of Ownership for Enterprise Software

Migrations
Ecommerce Replatforming: A Step-by-Step Guide To Migration

B2B Ecommerce
What Is B2B Ecommerce? Types + Examples

Direct to consumer (DTC)
The Complete Guide to Direct-to-Consumer (DTC) Marketing (2025)

Tips and strategies
Ecommerce Personalization: Benefits, Examples, and 7 Tactics for 2025

Unified commerce
How To Sell on Multiple Channels Without the Logistical Headache (2025)

Enterprise ecommerce
Composable Commerce: What It Means and Is It Right for You?

subscription banner
The latest in commerce

Get news, trends, and strategies for unlocking unprecedented growth.

Unsubscribe anytime. By entering your email, you agree to receive marketing emails from Shopify.

Popular

Headless commerce
What Is Headless Commerce: A Complete Guide for 2025

29 Aug 2023

Growth strategies
How To Increase Conversion Rate: 14 Tactics for 2025

5 Oct 2023

Growth strategies
7 Effective Discount Pricing Strategies to Increase Sales (2025)

Ecommerce Operations Logistics
What Is a 3PL? How To Choose a Provider in 2025

Ecommerce Operations Logistics
Ecommerce Returns: Average Return Rate and How to Reduce It

Industry Insights and Trends
Global Ecommerce Statistics: Trends to Guide Your Store in 2025

Customer Experience
Fashion Brand Storytelling Examples to Inspire You

24 Mar 2023

Growth strategies
SEO Product Descriptions: 7 Tips To Optimize Your Product Pages

Powering commerce at scale

Speak with our team on how to bring Shopify into your tech stack.

Get in touch
Shopify logo

Shopify

  • About
  • Investors
  • Partners
  • Affiliates
  • Legal
  • Service status

Support

  • Merchant Support
  • Shopify Help Center
  • Hire a Partner
  • Shopify Academy
  • Shopify Community

Developers

  • Shopify.dev
  • API Documentation
  • Dev Degree

Products

  • Shop
  • Shop Pay
  • Shopify Plus
  • Linkpop
  • Shopify for Enterprise

Global Impact

  • Sustainability
  • Build Black

Solutions

  • Online Store Builder
  • Website Builder
  • Ecommerce Website
  • Australia
    English
  • Canada
    English
  • Hong Kong SAR
    English
  • Indonesia
    English
  • Ireland
    English
  • Malaysia
    English
  • New Zealand
    English
  • Nigeria
    English
  • Philippines
    English
  • Singapore
    English
  • South Africa
    English
  • UK
    English
  • USA
    English

Choose a region & language

  • Australia
    English
  • Canada
    English
  • Hong Kong SAR
    English
  • Indonesia
    English
  • Ireland
    English
  • Malaysia
    English
  • New Zealand
    English
  • Nigeria
    English
  • Philippines
    English
  • Singapore
    English
  • South Africa
    English
  • UK
    English
  • USA
    English
  • Terms of service
  • Privacy policy
  • Sitemap
  • Privacy Choices