How to Add Custom Scripts to Multiship
In this tutorial, we will demonstrate how to add custom CSS and JavaScript to Multiship’s shipping rates page, as well as the Multi-Multiship address page.
Please note: This is an advanced tutorial and should be completed by a qualified Shopify developer familiar with JavaScript. Since you cannot preview these changes, any code you implement will be live.
Shipping Rates Page
The shipping rates page appears after entering all addresses and clicking checkout. You can paste the following code block in Giftship’s general settings under the Multishipping tab > Custom JavaScript. The following snippets will retrieve the corresponding file from the live theme’s asset folder.
var loadCSS = function(url, location) { var link = document.createElement('link'); link.rel = 'stylesheet'; link.type = 'text/css'; link.href = url; link.media = 'all'; location.appendChild(link); } loadCSS("{{ 'custom.css' | asset_url }}", document.body);
Custom JS
var loadJS = function(url, location){ var scriptTag = document.createElement('script'); scriptTag.src = url; location.appendChild(scriptTag); }; loadJS("{{ 'custom.js' | asset_url }}", document.body);
Multiship Landing Page
{% if request.path contains '/a/gs/cart/' %} // CSS // JS {% endif %}
Can't find the answer in our documentation?
Contact Support Drawer Cart: Automatically Clear Datepicker After X Hours
Automatically Add Upsell (e.g. Insurance) in Drawer Cart
Disable Multiship Call to Action in Drawer Cart for Certain Product Types
How to Add Product Bundles Manually to Cart
Google Font Real-Time Personalizer
Remove Blocks Based on Country
Remove British Forces from Multi-Address Modal
Preset Bundles: Automatically Ensure All Products in an Upsell Block Are Added to Cart
How to Add Custom Scripts to Multiship
Conditionally Showing Datepicker Blocks Based on Product Types in Cart Using the Hidden Input Block
Showing Product Option Blocks Based on Customer Tags with the Hidden Input Block
Event API Example: Automatically Add an Ice Pack to Each Shipment in the Multiple shipping Address Process
Drawer Cart CSS Styling Options
Preventing Checkout Until Giftship Bundles are Loaded
Javascript Event API
Showing Product Option Blocks Based on Product Variants with the Hidden Input Block
Edit Gift Messages etc on Multiship and Cart Page in Giftship
Adding Bundles when a User Navigates to the Cart Page
How to show bundle price on product page as bundle is built
Conditionally Hide Giftship Options Based on Your Carts Contents
Giftship Checkout API ⚒️