 Welcome to WooCommerce Triple Shooting Basics. So a little bit about me. I'm Sarah and I describe myself as an internet wizard because somebody told me that I was allowed to pick my own job title. So I was like, I'm just going to go for it. I've been using WordPress for many years and my most recent like internet wizard quest was to work with WooCommerce. So I wanted to like share what I've learned. I've been working for Prosperous and I made them that party parrot emoji, which is awesome. It's like the best thing I've done there. So yeah, I usually try not to break things and fix them instead, but like sometimes when you're trying to fix things, you break them. So as long as you fix them all in the end, it's fine. So who here has a WooCommerce store and who here has had something break on the WooCommerce store? Okay, that's significantly less people. That's awesome. So we have some quest goals today since I'm an internet wizard. So you know, you can all come along on the quest. You got to have goals. So the first one is learning about WooCommerce troubleshooting and all that entails. The second one is to acquire more tools to fix all the things because these tools will like help you fix general WordPress issues, not just WooCommerce, but I find them particularly helpful helpful for WooCommerce. And probably most importantly for me is I want you to feel confident in your ability to troubleshoot. You don't need to be a developer to troubleshoot and figure out problems on like where your WordPress site or WooCommerce site, you just need to have the right tools and kind of, you know, know what to do. So the first thing I'm going to talk about is backups and staging site because if you have those two things, it's okay if you break everything, but you look so happy drinking their coffee. So first we're going to talk about backups. They are really important because they a snapshot of your website. So if something goes horribly wrong, you can just restore the backup and start over. So I'm going to get into how you create a backup. So a lot of hosts, especially if they are WordPress specific or like specialized in WordPress hosting, they may have a tool to do this already where like you can just go into, I think some of them might have it in the WordPress backend, but like maybe in Cpanel where you can just be like, I want to make a backup. You just look it does it. They may already be doing this for you. They may have a service where they just make backups for you, which is awesome because then you can be like, oh no, I messed it up and they've already taken care of it for you. If you don't have either of those options, there's all kinds of plugins on WordPress.org that will do this for you. It's built into Jetpack and then I picked like a few different of the top search results on WordPress.org. So updraft plus all in one WP migration. There's like 80 billion of them. The next thing is staging sites and there was a talk about staging sites yesterday. Did everyone go to that? Cool. So you won't learn a lot here, but you probably learned a lot yesterday. So a staging site for those who don't know is a clone of your live site and it's like a total exact copy, which is really useful. Again, your host may have a tool to do this already. There's some hosts that you can just click a button and it creates a staging site for you, which is really awesome and easy. You can also get plugins to do this for you. Usually, if I'm doing this, I use WP staging because it's the one I'm most familiar with. But again, there's all kinds of plugins on WordPress.org and staging sites. Number one are great for testing because you can like turn things off and on and not worry about it breaking your live site. It's just like it's your playground to break things basically, which is what I like doing. So now we're going to talk about what we call in my office basic deductive troubleshooting, which if any of you have seen the IT crowd is essentially turning it off and on again, but like the WordPress version. So I have to check my notes. WooCommerce actually has a guide called WooCommerce Self Service, which indicates the top three issues that happen with WooCommerce and how to find them. Self Service Guide is a really great place to start finding out what the problem is. The first thing on the list is make sure everything is up to date. Plugins update all the time. They release security updates or bug fixes or like it could be a bug within their own plugin. It could be like a conflict with another plugin, but like if you see that the plugin needs to be updated, you should probably do that because it might take care of your problem. The next one is switching to a default theme like 2017 or storefront to see if it's a theme conflict. Most commonly I see this if someone's like something is happening on the front end of my site that's broken, then like have you tried turning off the theme because the theme controls how the front end of your site looks. So some themes also include other like WooCommerce layout specific stuff. So like if you're having a cart issue, a theme like is a good place to check. Sometimes they do things in the back end. So yeah, it's a good place to take a look. Next one is disable all of your other plugins. So this is one that if I hear like it's doing this really weird thing and I don't know what's happening. I'm like have you tried turning off all of your other plugins and a lot of the time that actually fixes the issue because there's so many different plugins, they can all interact differently. So like you never know when there is a conflict and like plugin developers try and resolve them all, but you know, they can't catch them all basically unlike Pokemon. The next thing like if basic deductive troubleshooting shooting doesn't work is to check Google, which sounds a little silly, but it really works sometimes. Sometimes I'll ask in my work chat and be like, hey, has anyone seen this problem before? And some will be like, oh, I Googled and I found this and I was like, why didn't I Google it? So specifically like tips for Googling things, Googling the error or a description of the problem helps. Like you don't have to put in a whole sentence, but like if you're like WooCommerce cart is doing this or throwing this error message, like sometimes you'll get somewhere. Sometimes it will lead you to a GitHub issue on a repo for the plugin. If it's like not paid plugin or like it could lead you to, if it is a paid plugin, it could lead you to their site where they might have like an issue tracker and they're like, we're aware this is an issue, we're working on it. It can also lead you to the WordPress.org forums where lots of people have lots of information and you might find someone where they were like, oh, I had this problem and this is how I fixed it. And it's like, awesome. I also frequently find myself on Stack Overflow for WordPress problems because they have an entire WordPress section, which is pretty awesome. So now probably the most important part is the examples section because I fixed something once. So this first scenario, like these are actual things that I fixed at my job because I work in support. So every day I get emails, people are like, this is broken, how do I fix it? So I really like fixing things. So when I can just fix it, it's awesome. So this particular one, the orders are stuck in pending payment. So like this person, their orders were coming in, but they were stuck in pending payment. So I was like, all right, I'm going to take a look. And like when I'm looking, I look on their website to see the problem and then usually I will just take a look on my own local site to see if I can reproduce the problem. So this is their site. So I took a look at the specific order that they indicated because I'll always be like, can you give me an example order so I know where to look? And the first thing I did was open the billing information by clicking the little like arrow next to billing, or I guess it's a pencil. And I noticed that like it said the payment method was straight, but the transaction ID was missing and I was like, okay, well, that's your problem. That's why you didn't get a payment because something happened and it didn't go through to stripe. So then I decided to go through on their site and go through the checkout process. So I'm on the checkout process. I have something in my cart. I'm on stripe. I'm click continue to payment. And then I get on this screen. And at this point, I think what if people didn't click the place order button. So I clicked it and that's when the modal window came up with where you actually put in the payment information. So I was like, okay, well, I'm going to test this on my live site and see what happens. Or actually, no, I got ahead of myself. I searched and it says I found this in the stripe documentation where since version 4.1 stripe checkout modal pop up flow has changed. It now requires one additional step before the modal pop up is shown. So before it was different, which I will show you in a bit, but it's basically like it's changed. So then I go through on my local site. And what I do is I go back to version, like a previous version of 4.1, which was like 4.0.7, I think, and I test it. So going through the checkout process, I click the pay button and the modal window comes up. And I'm like, okay, so there's no way that this order could have been created without someone actually paying for it. So I was like, I'm pretty sure that like this is the problem. I was like, all right, order received, awesome. Go check out the details. It has a transaction ID. I was like, all right. And then I was like, what do I tell this person? And I was like, had to sit there for a few minutes and kind of think about it. And ultimately I came to the conclusion that the solution was to turn off straight mode. I'll cut checkout. This was someone who like she was really stressed out. She was having a hard time because she had a lot of orders where they didn't go through. It was as simple as a setting. And it was just like, wow. So yeah, and that actually like I had looked on GitHub too. And there was an issue on the repo where someone was like, can you change it back? And they're like, no, because I guess it's like a straight thing. So yeah. So when you turn off mode, I'll check out this is what it is. The form's just in line so it can't create an order without payment. So the second scenario here is the country is not displaying on the order screen. And this is one that got passed around to a few different people on my team. And I looked at it for five minutes and then somehow figured it out, which is like the best feeling. So the specific description is when I look at an order, if it's from a customer in Switzerland, the country doesn't show in the order details. And I was like, that's a really strange problem. And I want to look at that. So the first thing I did was look at it on the customer site. So you look at the billing details, there's no Switzerland there. I open like the edit screen. I can see that Switzerland is the country. So I'm like, all right, well, I'm going to go test some things on my live site. So I went to my live site, my local site, sorry. And I went to an order and I noticed that Canada wasn't displaying as the country. I was like, huh, that's weird. I wonder if that's on purpose. So I opened that. Canada is there. So then I Googled. And like just very brief WooCommerce same country display order is what I searched and it came up with a bunch of different results. The specific one that I found was this one, which like it was like the second result, but I couldn't fit in the slide where it's like it says in recent versions of WooCommerce, the base country does not show in the order screens. And it's basically describing the exact same issue that the client had. And this person's like, how do I fix it? So someone else says, I looked through the code and this is intended functionality to reduce clutter in the admin screen. And then they said, here's a code snippet for if you want that to display, you just add it to your functions.php, you're all good. So with those tools, you can now be an internet wizard. Well, you're a level one internet wizard. So you might have to do some other stuff to like level up a little bit. But yeah, once you slide bugs, you like level up pretty fast. So it's pretty cool. Does anyone have any questions? Sure. So the question was if you're using user switching, which is a plug in that you can use to switch to a different user on your site. It's holding the cart information. And have I run into that problem? I actually haven't. But a lot of the testing that I do is like, I didn't have anything in my cart to begin with. So, but yeah, I haven't personally run into that problem much. And it's not something that I've heard. Usually if things are being like stuck in the cart, it's usually something to do with the theme. Like there's a couple of specific themes that I've noticed a trend of that happens. So. Does anyone else have questions? Or does everyone else just want more cupcakes? All right, you have a question. Are there tools for pro performance profiling? I think there's some like there's general like reporting, but I don't deal too much with like performance stuff. So yeah, there's none specific that I would recommend. Anyone else? Okay. Thank you.