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…
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!
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!
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!
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
this was very helpful! also see this page for more help:
https://stackoverflow.com/questions/32145974/how-to-re-enable-introductory-onboarding-wizard-after-reinstalling-woocommerce
I had to regenerate the checkout pages using 13
In the WooCommerce -> System Status admin page, under the Tools tab, there’s the Create default WooCommerce pages tool
I had disabled woo commerce on my website then reinstalled it and the pages had not regenerated
easy
Monika, thanks for sharing the additional link, I’m sure that will help others too! Glad you got it fixed.
Many thank for your artical really it working……… thanks
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!
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!
Thank you so much I was struggling with this for a while.
Wow… it’s really simple. I was really confused what happened to my website cause the view cart redirected to homepage.
thank you…
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
This saved my Day! Thumbs u man
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/
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!
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…
I have found in DATABASE : SELECT * FROM `wp_posts` it is 8. row.
But I could not find in dashboard that option !
THANKS !!!
Nikola, I’m so glad this helped! You’re welcome 🙂
Thanks man
Had the same issue and could not find hel anywhere except this page.
Thanks Dear 🙂
THANK YOUUUUU!!!!
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
I had this issue and your article saved me a LOT of time. Thanks for taking the time to do the article.
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!