Select Page

WooCommerce View Cart & Checkout Buttons Go To Website Home Page

Nov 7, 2017 | WordPress Troubleshooting

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:

  1. 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.
  2. 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…

24 Comments

  1. Lisa

    Thanks for this post! I was having the same issue and this was the only help I could find for it. I got mine working and am 1 step closer to going live thanks to you!

    Reply
    • Torre

      Lisa, yay!! So glad to hear it! Isn’t that bizarre when there aren’t 100 answers to something WordPress related? Always boggles my mind. Good luck getting wrapped up and going live!

      Reply
  2. Brooke

    I’m so glad you wrote this. My shop page was gone, but once I added it and put in [woocommerce_shop] it worked like a charm! I would never have figured that out if I hadn’t seen this post. Thank you so much!

    Reply
  3. Igor

    Torre, thank you very much. As I read what you wrote it`s like every single thing is exactly in my case and no luck finding on internet allthough I can find everything I need and this is what I needed. I got same problem and went to WooCommerce Settings and type “Cart” and it was working as it should.
    Many thanks!

    Regards,
    Igor

    Reply
    • Torre Capistran

      Monika, thanks for sharing the additional link, I’m sure that will help others too! Glad you got it fixed.

      Reply
  4. quick web

    Many thank for your artical really it working……… thanks

    Reply
  5. Larissa

    I’m having the problem that instead of going back to the main page of my woocommerce store, if you hit “home” it goes back to my website home page. Is there a way to redirect it so if they want to back out of looking at a product and go back to all the products they don’t end up on the main website home page?
    My website is evexiaeveryday.com. I’m trying to make the Herbal Product page the page you get directed to if you are looking at a product and at the top it will say, for example, Home/Gardening/Whipped Gardeners Butter. But if you hit that home it does not go back to the products. Any help is appreciated!

    Reply
    • Torre Capistran

      Hey Larissa! We don’t offer support here in blog comments but if you’re in need of help you can email us at [email protected] and we can go from there. However, sometimes fellow WordPress users will pop in and help each other here!

      Reply
  6. Kamaal

    Thank you so much I was struggling with this for a while.

    Reply
  7. Wallpaper Makassar

    Wow… it’s really simple. I was really confused what happened to my website cause the view cart redirected to homepage.

    thank you…

    Reply
  8. Quy

    I am new to WP and your guidance helped me a lot.
    Thank you very much and wishing you the best in your life,
    Quy

    Reply
  9. emma

    This saved my Day! Thumbs u man

    Reply
  10. amit

    I still have the problem, I click anywhere on my woocommerce website and it redirects me to the homepage, don’t know how to resolve it, please help me with this. website-https://modagin.com/

    Reply
  11. jo

    THANK YOU SO MUCH. It’s been two days of absolute hell trying to sort out the damn buttons. THANK YOU FOR THIS. THANK YOU!

    Reply
    • Torre

      Lol you’re welcome! I’m sorry it took you 2 days of hell to find the solution, but I’m glad you did! Damn buttons…

      Reply
  12. Nikola

    I have found in DATABASE : SELECT * FROM `wp_posts` it is 8. row.

    But I could not find in dashboard that option !

    THANKS !!!

    Reply
    • Torre

      Nikola, I’m so glad this helped! You’re welcome 🙂

      Reply
  13. Salama

    Had the same issue and could not find hel anywhere except this page.

    Thanks Dear 🙂

    Reply
  14. Carrie

    THANK YOUUUUU!!!!

    Reply
  15. brian

    hi, in my site the pages where not created, i lack the cart page, checkout pages etc, how do i force woocomerce to generate them again

    Reply
  16. Mary Walker

    I had this issue and your article saved me a LOT of time. Thanks for taking the time to do the article.

    Reply
  17. Erica Bibb

    I’m having the same issue, but don’t even have the checkout tab as an option. Looking forward to finding the tab, so I can utilize the info haha!

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

how-to-choose-a-wordpress-theme-thumbnail

How To Choose A WordPress Theme For Your Website

In this guide you'll learn four tips to make choosing a WordPress theme a bit easier. This is a 5 page guide with an approximately 4 minute read.

How To Pick A WordPress Theme For Your Website • Download the Guide

How-to-choose-a-wordpress-theme-thumbnail-sm 5 page guide • 4 minute read

In this guide you'll learn four tips to make choosing a WordPress theme a bit easier.

Powered by ConvertKit

Success! Check your email for the guide.

where-to-host-thumbnail

Where To Host Your WordPress Website and Why It Matters

In this guide we discuss what makes 'good hosting' including security, speed, and support. We tell you who we use and why, and give you a coupon! YAY COUPONS! This is a 45 page guide with an approximately 3 minute read.

How To Pick A WordPress Theme For Your Website • Download the Guide

How-to-choose-a-wordpress-theme-thumbnail-sm 5 page guide • 4 minute read

In this guide you'll learn four tips to make choosing a WordPress theme a bit easier.

Powered by ConvertKit

Success! Check your email for the guide.

8-next-level-plugins-cover

8 WordPress Plugins That Can Take Your Website To The Next Level

For our business clients, we install some specialized WordPress plugins. Get our list of the 8 next level plugins we love and the use case for each. 

How To Pick A WordPress Theme For Your Website • Download the Guide

How-to-choose-a-wordpress-theme-thumbnail-sm

5 page guide • 4 minute read

In this guide you'll learn four tips to make choosing a WordPress theme a bit easier.

Powered by ConvertKit

Success! Check your email for the guide.