website maker I had the weirdest thing happen today and COULD NOT FIND AN ARTICLE ANYWHERE ONLINE about fixing it (which has literally never happened to me before when using WordPress or WooCommerce to build out a site). It seems like every question I ever have, someone else has had before and it’s been answered in a blog post or public forum. UNTIL NOW. History has been made, y’all.
So here’s what happened: I installed WooCommerce on a new site and loaded a couple products, and went to test out the process (and make sure the custom fields I added to the checkout form were appearing the way I wanted). So, I manually typed in the /shop page URL, and clicked a product, added it to my cart, and then clicked the View Cart button that appeared at the top of the page. Was I sent to the cart page? Noooooo. I was sent to the site homepage. And it wasn’t a redirect issue, either. The button link really was set to go the home page.
So then I manually went to the /cart URL and from there clicked the Checkout button, which WENT TO THE HOME PAGE, TOO! Again, not a redirect – it was actually linking directly to the homepage instead of the cart page.
Ok, long story short, here’s how I solved the problem:
- It turns out that the pages auto-created by WooCommerce (Shop, Cart, Checkout, and My Account) were all for some reason in Draft status instead of Published. So, I had to go publish those pages.
- The Cart and Checkout pages were not set in WooCommerce Settings > Checkout. These are automatically set typically when the plugin is installed, but that didn’t happen for some reason this go round, so I had to set these manually. See screenshot below to see where these are set.
After making those 2 fixes everything works as it should.
Ok but seriously I can’t be the only person this has happened to…