Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Woocommerce - Cart page not displaying

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.

like image 989
Chinou Avatar asked Jun 22 '17 04:06

Chinou


People also ask

How do I display the cart page in WooCommerce?

After that, you'll need to change the cart URL in the WooCommerce settings. Simply go to WooCommerce » Settings and then click on the 'Advanced' tab. After that, open the 'Cart page' dropdown and start typing in the URL for your custom page.

Why is my WooCommerce cart not working?

The WooCommerce cart not working issue may occur if you restrict access to this file. Temporarily deactivate any security plugins or server security settings that you may be using, and then retest the cart's functionality to see whether it's working properly.

How do I refresh a WooCommerce cart page?

You can change the “change-quantity-on-checkout-woocommerce. php” file and in that, after below line, you can add the page refresh code: jQuery( 'body' ). trigger( 'update_checkout' );


3 Answers

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; ?>
like image 103
git-e-up Avatar answered Oct 17 '22 05:10

git-e-up


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.

like image 6
Danny Avatar answered Oct 17 '22 04:10

Danny


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

enter image description here

like image 3
Siddiqui Noor Avatar answered Oct 17 '22 03:10

Siddiqui Noor