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, 2016 22:29

People are charging a lot to make these, so with the help of OnlyGrowth I worked to make a ton of these that people can copy and paste to use on their stores. This is for Shopify Plus only right now.

More scripts can be downloaded on this site here: Liquid and Scripts


1. Getting started with Buy 2 Get 1 Free

2. Next we move on to Buy 1 Get 1 For $X

3. Want to give a % discount instead? Buy 1 Get 1 For X% Off

4. Love tiered pricing? Buy X quantity of a product, Get $Y off

5. More tiered pricing! Buy X quantity of a product, Get Y% off

6. Offer a discount on a certain product Tag! X% off all products with Y tag

7. More product tag discounts! $X off all products with Y tag

8. Spend at least $X (value in cart), Get $Y off

9. Spend at least $X (value in cart), Get Y% off

10. Get $X off on first purchase

11. Get X% off on first purchase

12. Have purchased at least X orders, Get Y% off

13. Have purchased at least X orders, Get $Y off

14. X$ off if customer accepts marketing

15. % off on W if X, Y, Z in cart

15. $ off on W if X, Y, Z in cart

Read More >>


by: Dylan Hunt | Published: August 16, 2016 14:14

Do you need to update your blog to add a meta description, or add authentication to users? Use this simple line in the terminal to make a new migration so you can update your db.

Once you run that, head down to db > migrate and modify your migration.

For more information on migrations click here

Read More >>


by: Dylan Hunt | Published: August 15, 2016 20:13

Collecting money online is a lot more simple these days than it used to be. With Stripe you can accept credit cards through your rails app with a simple gem. Let's start by installing the Stripe Gem:

Then, run bundle install to install the gem.

Next, generate a new Charges controller:

The controller does two things:

Shows a credit card form (using Checkout).

Creates the actual charges by calling our API.

Now Add two actions to the controller:

To be continued....Follow the rest of the guide here

Read More >>


Need help implementing any of these guides?

Contact Me