Woocommerce - Cart page not displaying

26,137

Solution 1

Be sure you have page.php setup in your theme to get the content. Something like:

<?php while (have_posts()) : the_post(); ?>

  <?php the_content(); ?>

<?php endwhile; ?>

Solution 2

So I fixed mine, here is how I did it, seems woocommerce does not create all the pages in the newest version, you are missing the 'cart page'.. create a page name it 'cart' then place this short code on the page.. [woocommerce_cart] save..Tada.. ;o)

Shop – No content required. Cart – Contains [woocommerce_cart] shortcode and shows the cart contents Checkout – Contains [woocommerce_checkout] shortcode and shows information such as shipping and payment options My Account – Contains [woocommerce_my_account] shortcode and shows each customer information related to their account, orders, etc.

Solution 3

In wordpress 5.4.x it is here like in this image:

enter image description here

Solution 4

Dear go to woo commerce setting page and click to checkout tab then select the cart page for add to cart.

enter image description here

you should also need to reset your permalinks first default and then post name.

Solution 5

This question is from years ago but since I had the same problem and finally could find the culprit by try and error, I post this answer in case someone has the same struggle. Go to woocomerce setting and then advance and set the checkout and cart pages If the woocommerce doesn't create checkout and cart pages when you install it, you need to create them by yourself using these pieces of codes:

[woocommerce_cart] [woocommerce_checkout]

You can find other codes from here: https://docs.woocommerce.com/document/pages-not-displaying/#

Share:
26,137
Chinou
Author by

Chinou

Updated on July 13, 2022

Comments

  • Chinou
    Chinou over 1 year

    After ADD TO CART option i can see the items are getting updated to CART but when moving to cart page it is redirecting back to homepage.

    enter image description here

    The cart page shortcode is also provided.

    enter image description here

    Please help out!I'm new to woocommerce.

  • Chinou
    Chinou over 6 years
    I have already configured all these things . Still its not working .
  • R.K.Bhardwaj
    R.K.Bhardwaj over 6 years
    provide website link
  • Chinou
    Chinou over 6 years
    its in localhost
  • R.K.Bhardwaj
    R.K.Bhardwaj over 6 years
    the reset your woocommerce