How’s it going? I’ve got a lot of things to cover today. I’ve got the Shopify documentary on how they went about going and creating the presentation for when they went public. I’ve got a great demo on how to do discount codes, and there’s been a few slight changes to the app on the Shopify dashboard. That’s all next.

Yesterday, Shopify put on their YouTube channel a short documentary about how they went about for their investors for when they went public. I highly recommend you check it out. I put a link to it right here. I watched this, and this speaks exactly to why all of the partners love Shopify so much, just the way they think about problems and the way they go about this. Next up, we’ve got a quick demo that I’m going to show you on discount codes, and then I’m going to show you how they’ve changed the app page. Let’s jump into it.

Offering discount codes is a great way to encourage shoppers in order to buy additional stuff from your store. One of the great user experiences is if you can automatically apply the discount code when the customer clicks a button or adds a certain number of things to their cart, and there’s a way to do this in Shopify. It’s one of those hidden features that once you find out about it, you can’t believe that you lived without it. What I’m going to do is I’m going to show you how to set that up. The first thing we want to do is we want to go to our dashboard, and we want to actually set up a discount code.

Let’s go to discount codes, and we’re going to add in … I’ve already added in a discount code called cyber deals, but I’m going to add in another one here, and we’re going to call this fall deals, or actually we’re going to call this free shipping. Free shipping. A free shipping discount code, and it’s going to offer free shipping for any shipping rate that’s less than or equal to say $10. It’s going to apply to all countries because that’s all I have set up. For right now, it’s going to be unlimited because it’s going to be auto applied. We’re going to hit save on that, and free shipping is what we’re going to use as our discount code.

The next thing we need to do is we need to actually go in to do some liquid changes. In order to make the discount code automatically apply to someone’s checkout, we need an action in order to do that. I’m going to use a page as a demo just because it’s easier for me to code it, and I don’t have to go into the templates, but this technique is always usable within side your template code. Every individual theme template that you have has different codes so you’re changing might be different in there, but the theory still applies. What we want to do is I’ve gone and created a page here with a free shipping button is what we’re going to put in here. Free shipping.

Then, in the code, what we’re going to do is first we’re going to highlight this. The link that we need to create is a URL stream that will automatically apply this discount code. This URL can be used on any type of button, so if you have a button that you’ve put on your WordPress site, this graphic goes to your Shopify cart or your Shopify store and you want it to apply a discount code because they came through a specific mailing list, you can use this link anyway. It’s just a matter of typing it in correctly. The first thing we want to do is we want to type in checkout because that is where we want the item to go to.

Then we want to have a question mark, which means we’re going to be adding a variable, and the variable we’re going to add in there is called discount. Then we’re going to add the discount code, free shipping, and this is the name of the code that we wanted. We’re going to hit insert link, and we’re going to save that. Then we’re going to jump over and we’re going to view it. We’re going to view the page. Once we’re on the page, we’re going to click on the free shipping link and we’ll see what happens. It now takes us to the checkout page, and we can see that the discount has automatically been applied to this product.

I can remove that and show you that it’s now been earned and we can refresh it. Sorry. Let’s remove that one there because discount is up in here in the URL. We are going to just refresh that there, and then what we can do is we can go back to this here and we can hit it again and we can see that it contains it in there. Anytime that you add the variable discount equals free shipping or discount equals discount code, it will then add it to your checkout, so it really allows you to expand your creativity when it comes to how you apply your discount.

That pretty much does it for this week. Don’t forget to like and subscribe to this video, and if you have any questions, you can always hit me up in the comments down below, or if you have a custom project that you need done, you can always book a call with me and I’d love to talk to you about it. That’s all for this week.

Leave a Reply

You must be logged in to post a comment.