Dylan Hunt Shopify Guides and Resources

This site is a collection of things I have struggled with while learning to code. I am by no means an experienced developer, and don't claim to be, but I want to document things I found difficult, and try to make them more simple for others. If anyone benefits from any of these guides my job here is done.

I started learning to code while working at Shopify and I have been practicing a ton while working on a number of projects.

I plan to blog about HTML, CSS, JS, and Ruby on Rails. If there are any guides you would like to see, please reach out on the About page.

Happy Coding!

- Dylan Hunt


by: Dylan Hunt | Published: November 10, 2017 16:03

Hey guys, This script will allow you to offer a free gift if the price is over a certain price. I set it up here to allow for 4 items to be chosen to be a free gift. This will come along with a bit of work to setup the frontend, but bundling to offer a free gift has been really popular on Shopify lately and I wanted to start the dialog here.


This will ensure that if your cart is over $75 and one of the 4 product id's marked with x's is in the cart it will be free.

Read More >>


by: Dylan Hunt | Published: July 07, 2017 16:01

Here is the code to show the inventory quantity of each product on a collection or product page, instead of just showing the first available variants. Note, this guide will only show if inventory is below 4.

Read More >>


by: Dylan Hunt | Published: February 15, 2017 15:14

I wanted to write a few scripts to help people get started with Shipping scripts. Let me know if you have any comments or want to see anything else for how these work.


1. Discounted Shipping if cart is over $X

2. Free shipping if the cart is over $X

3. Free shipping on rate based on the name of the rate

Read More >>


by: Dylan Hunt | Published: January 01, 2017 20:46

Just wanted to share this link with anyone that wants to get started with Digital Ocean. I use them for all of my hosting due to ease of use, simple interface and reliability. If anyone wants to get started here is a link that will give you a $10 credit upon signup which covers the first two months for a small droplet: Discount Link

Read More >>


by: Dylan Hunt | Published: December 08, 2016 16:42

There are a lot of people asking for more information on how to discount returning customers, so I wrote this script to give a discount based on the number of orders the customer has placed. This script is for people who have placed over 2 orders, and a platinum discount if you've placed over 5, but can be modified for any amount.
If you have any other scripts you're wondering about just ask in the comments.

Read More >>


by: Dylan Hunt | Published: November 30, 2016 16:48

Very commonly with Shopify Plus (since they give you up to 3 stores for internationalization), we will need to redirect people to other sites based on where they are. So here is a script you can use to automatically redirect someone to a separate domain if they are from a certain country:

This can also be done in a way that doesn't redirect them right away, but displays a popup asking them if they want to go to the other store.

Feel free to reach out to me directly for questions about further customization

Read More >>


Need help implementing any of these guides?

Contact Me